Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: scan for phone numbers

by seattlejohn (Deacon)
on Mar 08, 2002 at 03:03 UTC ( #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? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2022-07-07 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?