Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by ccn (Vicar)
on Sep 20, 2009 at 18:57 UTC ( [id://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"; }

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://796408]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found