JavaでURLを取り出す正規表現の一例です。
String str =
"((https?|ftp|gopher|telnet|whois|news)\\:([\\w|\\:\\!\\#\\$\\%\\=\\&\\-\\^\\`\\\\|\\@\\~\\[\\{\\]\\}\\;\\+\\*\\,\\.\\?\\/]+))";
Pattern patt =
Pattern.compile(str, Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
Matcher matcher = patt.matcher(raw);


