valid URL regexp 
Author Message
 valid URL regexp

A while back I remember seeing a huge regexp for a valid URL, as well as
a more modularized version for validating a given string as a URL. I've
looked around in libwww.pl for an easy way of doing this without
success. I've been hard pressed to find any examples laying around
either. If anyone has a good answer, please post it. This would also
make a good addition to the FAQ. Thanks...

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Darin R Hawley                         |       ................    __o
 NDSU, Computer Science                 |    ................     _~\<,_

(_)
  http://www.*-*-*.com/ ~dhawley  |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Sat, 07 Aug 1999 03:00:00 GMT  
 valid URL regexp


Quote:

> A while back I remember seeing a huge regexp for a valid URL, as well as
> a more modularized version for validating a given string as a URL. I've
> looked around in libwww.pl for an easy way of doing this without
> success. I've been hard pressed to find any examples laying around
> either. If anyone has a good answer, please post it. This would also
> make a good addition to the FAQ. Thanks...

use URI::URL;

even if you don't want to use the module, you can see how it was done :)

--
brian d foy                              <URL:http://computerdog.com>                      
unsolicited commercial email is not appreciated



Sat, 07 Aug 1999 03:00:00 GMT  
 valid URL regexp

On Tue, 18 Feb 1997 10:51:26 -0500, brian d foy wrote in comp.lang.perl.misc:

++
++ > A while back I remember seeing a huge regexp for a valid URL, as well as
++ > a more modularized version for validating a given string as a URL. I've
++ > looked around in libwww.pl for an easy way of doing this without
++ > success. I've been hard pressed to find any examples laying around
++ > either. If anyone has a good answer, please post it. This would also
++ > make a good addition to the FAQ. Thanks...

<URL: http://www.ny.fnx.com/abigail/Perl/url.html>

Abigail



Sun, 08 Aug 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Best way to determine if URL is valid

2. Checking if a url is valid

3. How do I check for a valid URL

4. Checking if URL is valid/exist using PERL

5. Testing for valid URL before writing HTML code (cgi)

6. Quickie: regexp for valid e-mail addresses

7. Q: testing for valid regexp

8. Regexp to check for valid e-mail address?

9. Http - URL Regexp to remove only last part if

10. Regexp for URL in text file

11. uh, URL regexp (again)

12. URL->Text->URL

 

 
Powered by phpBB® Forum Software