Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How do I break down a phone number and rebuild it?

by jcwren (Prior)
on Jul 11, 2000 at 19:20 UTC ( [id://21996]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ( undef, $areacode, $exchange, $line ) = $phn =~
        m|(1-)?\(?(\d{3})\)?-?(\d{3})-(\d{4})|;
    
  2. or download this
    212-555-1212
    (212)555-1213 
    1-(212)-555-1214
    1-212-555-1215
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://21996]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-24 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found