Skip to the content Back to Top

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"].

Let Us Help You!

We're Librarians - We Love to Help People