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/