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

Re: Web Address Validation

by hdb (Monsignor)
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 the monks are mute...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-10-23 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (276 votes). Check out past polls.

    Notices?