I\'m trying to create a regular expression to extract URLs from text documents using Java, but thus far I\'ve been unsuccessful. The two cases I\'m looking to capture are li
This link has very good URL RegExs (they are surprisingly hard to get right, by the way - thinh http/https; port #s, valid characters, GET strings, pound signs for anchor links, etc...)
http://flanders.co.nz/2009/11/08/a-good-url-regular-expression-repost/
Perl has CPAN libraries that contain cannedRegExes, including for URLs. Not sure about Java though :(