RegEx help

  • Thread starter Thread starter andreas.w.h.k. :-\)
  • Start date Start date
A

andreas.w.h.k. :-\)

I have a string ie. "mystreet road23 45"

I manage to get this by using \b\w+ :

mystreet
road23
45

....and by using (?<=[a-zA-Z])\d+ I get:

23

However I am unable to combine both expression to split the string into

mystreet
road
23
45

Any suggestions? Don't know if I am in the right forum. (although I am using
RegEx with C#)

andreas.w.h.k :-)
 
Hi Andrea,

Please try the following RegEx.

[a-zA-Z]+|\d+

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
You're welcome.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help with Regex 3
RegEx help 2
regex validate rangename 8
Help with Regex 1
Help with this 2
Looking for a RegEx pattern 1
Please help with this regex 1
Regex references 3

Back
Top