Код, который сделает это, приведен здесь:
Pattern pattern =
Pattern.compile("the regex string");
Matcher matcher =
pattern.matcher("the file");
boolean found = false;
while (matcher.find()) {
System.out.println(match.group());
found = true;
}
Цикл по желанию, теперь я остановился, когда нашел первый адрес.
Само регулярное выражение можно найти здесь .