jim.shamlin.com

Regular Expression Runner

This is a utility for executing regular expressions on a passage of text. I put it together because I often find myself working on a Windows terminal that doesn't have the ability to run regular expressions, and was looking for a way to leverage them to take some of the tedium out of certain tasks. And so, here it is:

Find
Replace
Expression

This runs a universal, case-insensitive match and will utilize pattern memory (use $1, $2, etc. in the replacement string). There's an "undo" button at the top to recover from a mistake, but it only works once. I could probably improve that, but it suits my basic needs.

The code is pretty simple - view source to see it (scroll to the bottom).