Tuesday, 15 April 2014

regex - Regular Expression for specific numbers -



regex - Regular Expression for specific numbers -

i trying pull out of study 2 specific numbers 0103 , 0101. how do this?

^.*\b(0101|0103)\b.*$

it gave me 0101.

this regex should work:

\b010[13]\b

regex

No comments:

Post a Comment