in reply to
Re^3: Pattern mattching
in thread
Pattern mattching
What I ment to say was that it returns true even if there are more that 6 digits. I need to validate exactly six (6) digits.
Comment on
Re^4: Pattern mattching
Replies are listed 'Best First'.
Re^5: Pattern mattching
by
holli
(Abbot)
on May 30, 2005 at 07:44 UTC
Then you need another anchor.
/^\+\d{6}$/
[download]
holli,
/regexed monk/
[reply]
[d/l]
In Section
Seekers of Perl Wisdom