Piece of html code :
<a class="context_link" href="/thuc-don/41-Thit-vit-ram-sa-gung.html">
<img src="http://monngonmoingay.com/uploads/monan/201205170430310000000_thit" +
"-vit-ram-sa-gung-48aq570.png" alt="Thịt vịt ram sả gừng " />
so i use regex to get link from code :
String pat = "<a\\s+class=\"context_link\"\\s+href=\"(.+)\"";
Pattern pattern = Pattern.compile(pat,Pattern.DOTALL | Pattern.UNIX_LINES);
Matcher math = pattern.matcher(source);
while(math.find()){Log.i("Value",math.group(1));}
When i check is match or not, result always is false.
Who can help me fix error it ?