내 HTML을 도움이 필요 보인다 자바 정규식, 이스케이프 문자로
String result = "";
Pattern p = Pattern.compile("\"blue\"> $ (.*) </font></td>");
Matcher m = p.matcher(text);
if(m.find())
result = m.group(1).trim();
일치하는 것 같지 않습니다.
탈출 문자가 누락 되었나요?
가능하면 HTML을 정규식으로 구문 분석하지 마십시오. 대신 HTML 파서를 사용하십시오. –
html 구문 분석을 사용하여 정규식을 사용하지 마십시오 .. http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 –