【发布时间】:2016-12-13 22:00:00
【问题描述】:
给定控制台日志输出,例如:
...
app.js:4408 update w/ model.location: Discovering
app.js:4408 update w/ action: Animate 911583 { width = 320, height = 480 }
app.js:4408 update w/ model.location: Discovering
app.js:4408 update w/ action: Animate 911609 { width = 320, height = 480 }
app.js:4922 some other log message
app.js:1923 yet another thing on the console
...
是否可以让 Chrome 删除所有包含“Animate”一词的行?
我尝试在 Chrome 中使用 negative lookahead 之类的:.*(?!Animate).*(另请参阅:How to negate specific word in regex?),但没有成功。
该正则表达式已在regexpal:
进行了测试但在 Chrome 中没有效果:
能够只输入“!Animate”或“Animate”[x] 否定过滤器会很棒。这可能吗,或者任何人都可以在这种情况下使用否定正则表达式吗?
谢谢。
【问题讨论】:
标签: google-chrome google-chrome-devtools