按正则表达式示例过滤 [英] Filter by regex example

查看:65
本文介绍了按正则表达式示例过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以为Google Chrome开发者工具栏提供正则表达式过滤器的示例吗?

Could anyone provide an example of a regex filter for the Google Chrome Developer toolbar?

我特别需要排除在外.我已经尝试了许多正则表达式,但是不知何故它们似乎不起作用:

I especially need exclusion. I've tried many regexes, but somehow they don't seem to work:

推荐答案

事实证明Google Chrome实际上直到2015年初才支持此功能,

It turned out that Google Chrome actually didn't support this until early 2015, see Google Code issue. With newer versions it works great, for example excluding everything that contains banners:

/^(?!.*?banners)/

这篇关于按正则表达式示例过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆