ok here is the code
<code> public static void main(String[] args) throws IOException,
BadLocationException {
URL url = new URL(
"http://www.menuthessaloniki.gr/list_det.asp?area=1&offset=30");
BufferedReader in = new BufferedReader(new InputStreamReader(url
.openStream()));
String str;
StringBuffer buffer = new StringBuffer();
while ((str = in.readLine()) != null) {
buffer.append(str);
}
in.close();
System.out.println(buffer.toString());
str = buffer.toString().replaceAll("\n", " ");
Pattern pattern = null;
pattern = Pattern.compile("(?is)<tr>.*<span.*?>(?:\\s*<.*?>)+(.*?)(?:\\s*<.*?>)+(.*?),(.*?):(.*?)</span>.*?</td>");
Matcher m = pattern.matcher(str);
if(m.find()) {
System.out.println("group(1) = "+m.group(1).trim());
System.out.println("group(2) = "+m.group(2).trim());
System.out.println("group(3) = "+m.group(3).trim());
System.out.println("group(4) = "+m.group(4).trim());
}
}
</code>