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}/;.