Have a look at Regex::Common, there are a number of expressions to extract URLs.
Hope this helps, -gjb-
In reply to Re: URLs in plain text by gjb in thread URLs in plain text by traveler