文字情報にアドレス情報があった場合、一括置換を行い、"URL_Info"とする。
[code]
String text = "http://[\w\d/%#$&?()~_.=+-]+";
Pattern p = Pattern.compile("http://[\w\d/%#$&?()~_.=+-]+");
Matcher m = p.matcher(text);
String replaced = m.replaceFirst("URL_Info");
System.out.println(replaced);
[/code]
参考サイト:JAVA開発メモ