Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Web Address Validation

by hdb (Prior)
on Apr 22, 2013 at 13:24 UTC ( #1029867=note: print w/replies, xml ) Need Help??


in reply to Web Address Validation

If this assignment were part of an obfuscation contest, I would say this:

$_=$,;$,=$/;$/=$_;$_=<DATA>;print/([-_a-z_-]+)\x2eco(?:m|m?\x2e[a-z][a +-z])\s/gi; __DATA__ http://www.tesco.com http://www.mmu.ac.uk http://www.amazon.com http:/ +/www.ikea.co.uk http://plus.maths.org

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029867]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2017-02-27 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (376 votes). Check out past polls.