Chrome的开发人员控制台中是否可以使用正则表达式进行搜索? [英] Is it possible to search with regular expressions within Chrome's developer console?

查看:1796
本文介绍了Chrome的开发人员控制台中是否可以使用正则表达式进行搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Google Chrome的开发者控制台中使用正则表达式进行搜索?我知道如何在控制台中搜索文本( Ctrl + F ),但看不到任何方法来启用正则表达式。



在那里做例如如果Chrome本身不支持的话,是否存在扩展来启用此功能?

更新



我创建了一个功能请求在开发人员控制台搜索中支持正则表达式,因为似乎当前不支持它。

解决方案

使用正则表达式进行Ctrl + F搜索不存在。此功能需要在开发人员工具环境中进行紧密集成,因此如果您不喜欢以下替代方案,则必须查看开发人员工具的源代码,找到负责实施Ctrl + F的部分,编写使用 https://stackoverflow.com/a/17044405/938089 修补和应用修补程序。



点击漏斗图标并勾选Regex复选框。然后,您可以过滤控制台消息以仅显示与您的(区分大小写)(JavaScript)正则表达式匹配的消息。
$ b


Is it possible to search with regular expressions within Google Chrome's developer console? I know how to search for text within the console (Ctrl+F), but can't see any way to enable regular expressions.

Do there e.g. exist extensions to enable this, if not supported by Chrome itself?

Update

I have created a feature request for regular expression support in developer console search, since there appears to be no current support for it.

解决方案

Ctrl + F search with regular expressions does not exist. This functionality requires tight integration in the context of the developer tools, so if you don't like the alternative below, you have to look through the developer tools' source code, find the part that is responsible for implementing Ctrl+F, write a patch and apply the patch using https://stackoverflow.com/a/17044405/938089.

Click on the funnel icon and tick the Regex checkbox. Then you can filter console messages to only show messages that match your (case-insensitive) (JavaScript) regular expression.

这篇关于Chrome的开发人员控制台中是否可以使用正则表达式进行搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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