Over the past few months, Robbin Steif from LunaMetrics has been writing a series of posts about regular expressions. The series is amazing and I highly recommend it to anyone learning reg ex (as the geeks call it).
In one of Robbin’s posts she mentions a small, reg ex testing tool that we have on the EpikOne website. This tool was created by Alex, one of the founders of EpikOne. It is easy to access, easy to use and incredibly helpful. I’ve decided to repost the tool here to increase it’s visibility.
Regular Expression Testing Tool
How to use it
- Enter the text that you want to apply the regular expression to in the ‘Target String’ field
- Enter your regular expression in the ‘Regular Expression’ field
- Click the ‘Submit’ button
How to interpret the results
- If the regular expression matches any part of the target string then the ‘Result’ field will contain the word ‘Match:‘ followed by the part of the target string that was matched by the regular expression.
- If the regular expression does not match any part of the target string then you will see ‘No Match‘ in the result field.
- If you use parenthesis in your regular expression to capture part of the target string, then the tool will return the data stored in the parenthesis. The result field will contain both the part of the string that was matched AND the values in the parenthesis. First, you will see the term ‘Match:‘ followed by the part of the string that was matched. Then you will see the value stored in each set of parenthesis. Here’s an example.
Also take a look at http://regexlib.com/. no need to completely re-invent the wheel.
Hi ajp,
Thanks for the link! That’s a great site.
Justin
Hey Justin — where’s the option to test advanced filters? ;-)
Hey Mike, great idea! I’ll get it done in all my copious spare time ;)