正则表达式正向否定预查(检查不包含某字符串)
比如要抓取内容为:<div class="xxxx">content...</div>正则表达式:String regex = "<div class=\\"xxxx\\">((?!<\\/div>).)+<\\/div>";?
发布时间: 2012-12-24 10:43:13 作者: rapoo
正则表达式正向否定预查(检查不包含某字符串)
比如要抓取内容为:<div class="xxxx">content...</div>正则表达式:String regex = "<div class=\\"xxxx\\">((?!<\\/div>).)+<\\/div>";?