Announcing RegJex - The Regular Expression Tester
Posted by Matt Johnson | 2007-11-18 23:23:37
I'm a dunce when it comes to regular expressions, but my new tool makes it a little easier to write and test those little buggers. RegJex allows you select what type of regular expression you are writing (POSIX or PCRE) and enter in the regular expression. While you're writing it in, the form field will turn orange if an error is detected. On top of that, you can enter in a couple strings to see if they match the regular expression. If the string you entered in matches the regex, it will turn green, if it doesn't match, it will turn red. Everything is tested as you're typing so there is no need to click a submit button. Pretty neat, eh?
It's powered by the ereg and preg_match functions in PHP and uses a JavaScript XMLHttpRequest object to run the tests in real time (AKA AJAX). It wasn't much to program, but I did have some trouble with DOM as Abhishek Reddy pointed out in a TWF thread. But other than that, it went pretty smoothly. From concept to website in 1 week.
It's based off of RegexBuilder (windows only)
