« The way a Wiki _should_ work | Main | Photoshop Podcast? »

Find by regular expressions in Firefox?

Does anyone know if there is a Firefox extension which enhances the built-in Find/Search features in Firefox? It would be particularly useful to simply allow the “Find in this page…” feature to specify a regular expression. You could then inch through the document that way and/or highlight matching terms.

Of course, the flowing nature of a web document would provide some challenges to regex, or at least the user’s expectation on how it should work.

Take for example the beginning of line and end of line expressions. What do they mean on a web page which can flow differently based on how wide the window is? If you’re viewing a log via a web server than the meaning is clear, you break on newlines/line breaks. If you’re viewing a complicated web page, you’re probably better off breaking on paragraph marks or DIV tags. The user might now be aware of these and perhaps expects to break searches as they are visually layed out. If that’s realistic, it would mean a simple checkbox in the UI (but perhaps more challenging to implement from the extension API as I’m not sure it’s clear to the extension writer where the soft breaks happen). Otherwise, the UI would remain pretty much as simple as it stands now.

 

TrackBack

TrackBack URL for this entry:
http://www.primordia.com/blog/mt-tb.cgi/323

Listed below are links to weblogs that reference Find by regular expressions in Firefox?:

» Find by regular expression in Firefox: Revisited from Primordial Ooze
I have done a very poor job at responding to feedback on my blog. On one hand, I get tons of blog spam that I simply haven’t controlled. As such, legitimate comments have gotten lost in the noise. I just enabled a more strict comment policy for a... [Read More]

Comments

I haven't tried it yet, but maybe this will do the trick:

http://www.extensionsmirror.nl/index.php?showtopic=389

I totally agree. Have you found a solution thus far?

Post a comment