[Perl] Regex for verifying a URL

Shlomi Fish shlomif at vipe.stud.technion.ac.il
Tue Aug 27 05:33:56 PDT 2002


I need a simple Perl 5 regular expression for verifying that a URL is
valid.

I need to check the validity of the DNS host (just make sure it is a
valid dot-separated list of domains) and to verify the path against the
format proposed by the URL standard.

Regards,

	Shlomi Fish



----------------------------------------------------------------------
Shlomi Fish        shlomif at vipe.technion.ac.il
Home Page:         http://t2.technion.ac.il/~shlomif/
Home E-mail:       shlomif at iglu.org.il

He who re-invents the wheel, understands much better how a wheel works.




More information about the Perl mailing list