You might want to do a little more error-checking on the number, but that's the idea.( undef, $areacode, $exchange, $line ) = $phn =~ m|(1-)?\(?(\d{3})\)?-?(\d{3})-(\d{4})|;
In reply to Re: How do I parse a telephone number?
by jlistf
in thread How do I parse a telephone number?
by mofo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |