Regexp... Am I correct?
Posted: Fri Aug 01, 2003 4:20 pm
I am matching variables, and it's my first regexp, but it seems to work...
The string MUST be:
10 numbers then either followed by a star (*) or not followed by anything...
The code:
The string MUST be:
10 numbers then either followed by a star (*) or not followed by anything...
The code:
And it seems to work, just not sure if I have overlooked anything... Thanks!!$regexp_matches=preg_match("/^[0-9]{10}\*?$/", $regexp_string[$i]);