1、我要匹配非以.html结尾的链接,

  匹配 http://www.wandoujia.com/apps/com.freeapp.batterysaver,但过滤掉 以.html结尾的链接,

如 http://www.wandoujia.com/apps/com.freeapp.batterysaver.html

 

正则式如下

http://www\.wandoujia\.com/apps/(?![a-zA-Z0-9_\-\.]+?\.html).*$

 

关键点是 (?!.*非内容).*

 

参考资料:

1、 正则表达式匹配 非XXX的行  http://www.jb51.net/article/15146.htm

 

相关文章:

  • 2021-11-29
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
猜你喜欢
  • 2022-12-23
  • 2021-09-12
  • 2021-07-21
  • 2022-01-09
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案