Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 900
aknuds1 Avatar asked Sep 27 '14 18:09

aknuds1


2 Answers

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.

like image 197
Rob W Avatar answered Sep 17 '22 09:09

Rob W


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

For example: "Chrome Regex Search" developed by rshen. It looks like this: enter image description here

To install it:

  1. Access Chrome Web Store
  2. Search the keyword "regex"
  3. Click "ADD TO CHROME" button close to "Chrome Regex Search"
like image 25
bearzyj Avatar answered Sep 19 '22 09:09

bearzyj