Yes, but in your case anywhere.
If you want to only match strings with exactly three digits you need anchors for start and end of string.
/^[0-9]{3}$/
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Regex {3} matches 3 or more? (Anchors)
by LanX
in thread Regex {3} matches 3 or more?
by pritesh_ugrankar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |