Split text at the first instance of a letter
Posted
by Blankman
on Stack Overflow
See other posts from Stack Overflow
or by Blankman
Published on 2010-03-08T22:57:24Z
Indexed on
2010/03/08
23:06 UTC
Read the original article
Hit count: 195
I have a bunch of product sku's that look like:
abc234
asdf234324
adc234-b
result:
abc 234
asdf 234324
adc 234-b
I want to split the text at the first instance of a letter.
When I say split, basically I want to have access to both parts of the text, maybe in an array?
What's the best way to do this?
© Stack Overflow or respective owner