in reply to Re^2: Pattern mattching
in thread Pattern mattching

The pattern +000000 is in that string. Did you want it to match only if the whole string fits the pattern? If so then /^\+\d{6}\z/ should work.