</pre><pre name="code" class="java">Pattern p = Pattern
.compile("((\\d{3,4}-)|(\\d{3,4}-)|(\\(\\d{3,4}\\))|\\d{3,4}\\s|(\\(\\d{3,4}\\)\\s+)?)\\d{7,8}");
Pattern p1 = Pattern
.compile("-");
Matcher matcher = p.matcher("fs(0756) 2287623sd");
StringBuffer buffer = new StringBuffer();
if (matcher.find()) {
buffer.append(matcher.group());
System.out.println(buffer);
}