G
Guest
How do i tell if a string obeys a regular expression?
i thought i knew but then i tried to verify that a string was a certain
length...
Regex.IsMatch("1234", @"\w{1,3}")
This returns true and i don't want it to!
i understand that it found *a* match - "123" matched \w{3}. But i don't care
if some substring matched, i want to know if the entire value matched
Help?
-baylor
i thought i knew but then i tried to verify that a string was a certain
length...
Regex.IsMatch("1234", @"\w{1,3}")
This returns true and i don't want it to!
i understand that it found *a* match - "123" matched \w{3}. But i don't care
if some substring matched, i want to know if the entire value matched
Help?
-baylor