http://www.perlmonks.org?node_id=533485

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a URL formfield and for my script to work, I need to ensure that the URL IS infact a proper URL.

if ($url =~ m/regex/) { .. }

I'm sure someone has a suitable regex for this already.