should work to match three digits in succession. But what do you mean by "EXACTLY"?
If you mean "The string should exist entirely of three digits", then the above strings won't work, as they will, for example, match "0000", since a string of four digits certainly includes a string of three digits. To match all strings that exist in their entireties as only three digits, try:
Thanks sleipnir,
^[0-9]{3}$ worked for me. And you were correct in assuming that I wanted to match all strings that exist in their entireties as only three digits. Thanks a lot.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.