其实我的问题是这样的:
<a href=...>something</a>
我想从html中取得上面的字符串
所以写了个表达式:
<a href\\s*=[^<]*</a>
但对于这种情况无法匹配到:
<a href=http://...><font=red>news</font></a>
我该怎么写表达式呢?
<a href=...>something</a>
我想从html中取得上面的字符串
所以写了个表达式:
<a href\\s*=[^<]*</a>
但对于这种情况无法匹配到:
<a href=http://...><font=red>news</font></a>
我该怎么写表达式呢?
http://www-900.ibm.com/developerWorks/java/l-regp/part1/index.shtml
http://www-900.ibm.com/developerWorks/java/l-regp/part2/index.shtml