Is it possible to search with regular expressions within Chrome's developer console?

蓝咒 提交于 2019-12-21 07:24:02

问题


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.


回答1:


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.




回答2:


Some chrome extension could support(at least partly) your requirement.

For example: "Chrome Regex Search" developed by rshen. It looks like this:

To install it:

  1. Access Chrome Web Store
  2. Search the keyword "regex"
  3. Click "ADD TO CHROME" button close to "Chrome Regex Search"


来源:https://stackoverflow.com/questions/26077976/is-it-possible-to-search-with-regular-expressions-within-chromes-developer-cons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!