The Computer Oracle

How to run a regex search on Google Chrome or Firefox?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping

--

Chapters
00:00 How To Run A Regex Search On Google Chrome Or Firefox?
00:17 Accepted Answer Score 28
01:10 Answer 2 Score 17
01:46 Answer 3 Score 3
02:02 Answer 4 Score 1
02:24 Thank you

--

Full question
https://superuser.com/questions/385418/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#googlechrome #firefox #regex

#avk47



ACCEPTED ANSWER

Score 28


For Google Chrome, you could install one of the following extensions:

  1. Regular Expression Searcher

    • To open the extension, press /.

    • To start searching, press Enter.

    • To jump to the next match, press N.

    • To jump to the previous match, press Shift + N.

  2. Regex Search

    • To open the extension, press Alt + Shift + F.

    • To start searching, press Enter.

    • To jump to the next match, click Next.

    • To jump to the previous match, click Prev.

After installing the extension, restart your browser. When testing the extension, note that extension are disabled by default on Chrome's "special" pages, such as New Tab or the Chrome Webstore.




ANSWER 2

Score 17


Another option is VIMIUM.

The point of this Chrome plugin is to get Vim navigation on your Chrome pages, so you can use keys like J and K to scroll down the page.

However, since it is Vi-based, Vimium supports regular expressions.

Much like Vim, while looking at the page, type "/<regexp>, and it will start searching the page. I don't use it often (I use Ctrl + F much more), but when I need it, it is there and works.

To work with regexp while searching you need to turn it on in the plugin advanced options.




ANSWER 3

Score 3


Here's a bookmarklet that'll highlight regular expression searches. It doesn't have incremental search like the native find box, but it does the job. Each new search is highlighted in a different color.




ANSWER 4

Score 1


Fastest Search is the best text search on a page and in all tabs:

Count, regular expressions, visualize & list result/find-as-you-type.

There is an optional instant web and history search in the URL bar. It has the best custom search, multi-tab preview for selected text, dnd image/lnk, and autocopy.