Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Pattern mattching

by Fang (Pilgrim)
on May 30, 2005 at 07:19 UTC ( [id://461670] : note . print w/replies, xml ) Need Help??

in reply to Pattern mattching

If you are "not sure if $a =~ s/\+\d\d\d\d\d\d/ ; will do", it means you have to read perlretut for a start, with possibly perlre as a followup.

As for a direct answer, $a =~ m/\+\d{6}/;.