Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re x 2: Simple Regex

by Sweeper (Pilgrim)
on Apr 08, 2002 at 20:09 UTC ( [id://157537]=note: print w/replies, xml ) Need Help??


in reply to Re: Simple Regex
in thread Simple Regex

You love "5", don't you? :)

The 555 area code is a well-known area code that appears only in Hollywood movies and other fiction stuff. There is even a web page about that: http://home.earthlink.net/~mthyen/

So, if you want to "sanitize" a piece of code containing phone numbers (for privacy reasons and to fight spam... er telemarketing), you replace these by phone numbers from the 555-area.

Yet, maybe Sevrin could have said 555-1234-5678 or 555-2002-0408 :-)

update

I have forgotten the following example. In Mac Perl, Power and Ease (published by Prime Time Freeware http://www.ptf.com/), both authors (Vicki Brown and Chris Nandor) give their phone numbers:

$phone{"Vicki"} = "555-1234";
$phone{"Chris"} = "555-4321"; 
You can read it on-line at http://ptf.com/macperl/ptf_book/r/MP/120.SS.html#03

Another update. Sevrin, may be you could look at some of the modules you get in http://search.cpan.org/search?mode=module&query=phone

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://157537]
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: (3)
As of 2024-04-19 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found