Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I search for expressions like 'foo|bar' on webpages using browsers like google-chrome or firefox?

share|improve this question
add comment

4 Answers

up vote 8 down vote accepted

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

  1. Regular Expression Searcher

    This extensions allows you to search web pages using regular expression. It uses VI-style keystrokes.

    To start searching, press the slash key ('/'). Enter any JavaScript-valid regular expression and then press enter. All matches will be highlighted in yellow. You can then use 'n' to move to the next match (which will be scrolled into view and highlighted in orange). Pressing 'N' (i.e. shift-n) will move to the previous match. To clear the highlighting, press the slash key again, delete the regular expression, and then press enter.

  2. Regular Expression Search

    A simple search utility that allows you to search a web page using regular expression.

    ==== Features under development ====

    1. toggle through found results
    2. improved UI
    3. toggle between case sensitivity
    4. create shortcut for toggling the extension
    5. Allow pressing "Enter" key when searching (instead of clicking on search button)
share|improve this answer
3  
I tried both these and neither worked. –  Jason Oct 3 '12 at 17:07
    
Regular Expression Search works better for me, Regular Expression Searcher breaking the html code (specially in <pre> text) –  kenorb Mar 13 '13 at 11:57
add comment

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.

http://dpatrickcaldwell.blogspot.in/2010/09/regular-expression-search-bookmarklet.html

share|improve this answer
add comment

Another option is VIMIUM.

The point of this Chrome plugin is to get VIM navigation to your Chrome pages, so you can use keys like "j" and "k" to scroll down the page.

However, since it is VI based it has regular expression support so does VIMIUM.

Much like VIM, while looking at the page type "/ and it will start searching the page . . . I don't use it often (use ctl-f much more), but when I need it, it is there and works.

share|improve this answer
    
-1: Doesn't do regex search, which is what OP asked for... –  mgalgs May 14 '13 at 20:37
    
Yeah it does by "/" and your RegExp –  Frank May 15 '13 at 22:22
2  
Oh, looks you have to enable an option in the Vimium Advanced Options to turn on regex searching. Quite useful! Will upvote if you edit your answer to include mention of the fact that you have to enable it in the Vimium options. –  mgalgs May 16 '13 at 0:25
add comment

Fastest Search Best text search on page/in all tabs: count/regex/visualize & list result/find-as-you-type. Optional Instant web/history search in URLBar. Best custom search, multi-tab preview for selected text, dnd image/lnk, autocopy.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.