Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: perl module to determine if a URL is valid?

by ccn (Vicar)
on Sep 20, 2009 at 18:57 UTC ( #796408=note: print w/ replies, xml ) Need Help??


in reply to perl module to determine if a URL is valid?

use Regexp::Common qw /URI/; while (<>) { /$RE{URI}{HTTP}/ and print "Contains an HTTP URI.\n"; }


Comment on Re: perl module to determine if a URL is valid?
Download Code
Re^2: perl module to determine if a URL is valid?
by Anonymous Monk on Sep 22, 2009 at 15:45 UTC
    You can also use
    $regexp = qr($RE{URI}{HTTP}{-scheme=>qr/https?/}{-keep});

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-08-31 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls