in reply to Canonical regexp for urls beginning with http://

Maybe you should have googled a bit more. I got this excellent link on my first search using "regular expression url"

Update Nice (more excellent) link indeed merlyn (thanks!), but just how is a newbie to think of abigail? ;-)

--
I'd like to be able to assign to an luser

  • Comment on Re: Canonical regexp for urls beginning with http://

Replies are listed 'Best First'.
Re: Re: Canonical regexp for urls beginning with http://
by merlyn (Sage) on Feb 22, 2001 at 03:01 UTC
(tye)Re: Canonical regexp for urls beginning with http://
by tye (Sage) on Feb 22, 2001 at 10:11 UTC

    I don't think anyone mentioned the Find::URI module. I've never used it but I would hope it would either do a good job of this or you'd submit a patch for it based on other information in this thread. (:

    I like the one Albannach mentions above except that I'd be sure to add "," to the list of punctuation marks! My limited experience with URL-matching regexen shows that the trailing comma is the number one problem for them.

    I looked over the link merlyn gave and didn't see any regular expressions and was forced to actually start reading. (: The first line has a link to the regex that the discussed program generates. Somehow I cannot recommend the use of such a huge beast for the original requested purpose. Based on a very casual reading, I think that monster would actually match trailing punctation such as the period at the end of this sentence that also ends in a URL, http://www.perl.org/index.html.

            - tye (but my friends call me "Tye")