给定控制台日志输出,例如:
...
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
...
Run Code Online (Sandbox Code Playgroud)
是否可以让Chrome删除包含"Animate"一词的所有行?
我试过在Chrome中使用负面的前瞻 :( .*(?!Animate).*另请参阅:如何否定正则表达式中的特定单词?),没有运气.
但它对Chrome没有任何影响:
能够只输入"!Animate"或"Animate"[x]否定过滤器会很棒.这是可能的,或者任何人都可以在这种情况下使用否定正则表达式?
谢谢.