Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: Pattern mattching

by Anonymous Monk
on May 30, 2005 at 07:32 UTC ( [id://461688] : note . print w/replies, xml ) Need Help??


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.

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}$/


    holli, /regexed monk/