Regular Expressions Tool

by Peter Tyrrell Wednesday, June 29, 2005 10:25 PM

Whilst scripting today, I chanced to be working with regular expressions. I use The Regulator to hash out an expression, because it has syntax highlighting, intellisense, and can search Regexlib.com via web service. This helps a lot, but it doesn't have the ability to test the expression with a client-side regex engine - it's .NET or go home. Still, better than a poke in the eye with a sharp stick, as mother says.

The script? Makes an Inmagic search box more Google-esque. Single words, and phrases marked with quotation marks, are automatically demarcated with a boolean operator, like... ["Land Cruiser" Toyota] to ["Land Cruiser" & Toyota]. Existing boolean operators are respected, so... ["Land Rover" Toyota ! "Range Rover"] to ["Land Rover" & Toyota ! "Range Rover"].

Tags:

blog comments powered by Disqus

Month List