方法一:去除所有的href="xxx"
匹配 (?<=href=\").*?(?=\") 为空即可。
方法二:仅去除所有的href="xxx"中的xxx
匹配 a href="([^"]+) 为a=href=""即可
PS:正则表达式工具:https://pan.baidu.com/s/1i5lB9OT 7p3u 解压密码:www.epinv.com 转自:http://www.epinv.com/dl/10380.html
正则表达式在线生成工具 http://tools.jb51.net/regex/create_reg