in reply to finding urls in a string

Not for every need, but perhaps this is what you search for. perl -MLWP::Simple -e '$x=get("http://perlmonks.org"); use Regexp::Common qw/URI/; print join "\n",$x =~ /($RE{URI}{HTTP})/g'
Boris