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}/;.
In reply to Re: Pattern mattching
by Fang
in thread Pattern mattching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |