Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: scan for phone numbers

by seattlejohn (Deacon)
on Mar 08, 2002 at 03:03 UTC ( [id://150210]=note: print w/replies, xml ) Need Help??


in reply to scan for phone numbers

I would start by defining your problem more precisely. Which of the following would you consider a phone number that you want to match?
555-1212
310-555-1212
1-310-555-1212
(310) 555-1212
310.555.1212
+1 (310) 555-1212
310-555-1212, extension 1234
011 (46) 12-345678
1-800-MATTRES (leave off the last "S" for savings ;-)

etc. etc. It'll be much easier to devise a regex after you've figured out what it is you're actually looking for.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-20 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found