Peter D. Hedderley
Technology Specialist & IT Consultant

"Software is like a lucid dream, limited only by our imagination and ingenuity
- we are the architects, sculptors, rule-makers and rule-breakers."
Peter D. Hedderley.

User Tools

Site Tools


(Back to Articles)

Test Data for Regular Expressions

Ever wondered whether the Regular Expressions that you create are truely correct?

Microsoft Research have produced a wonderful little tool named Rex (Regular Expression Exploration) that produces a set of data values that conform to a given regular expression.
This tool is especially useful for the production of positive-case test data and also for identifying potential errors and omissions in regular expressions.

If you are using regular expressions in your software, it may be worth your while to run them by Rex to find out what kind of text would potentially match them and produce test data.

While the tool is intended for .Net regular expressions, any expression that does not use implementation-specific features should work just fine and produce interesting results!

If you would like to take a further look, check out their Rex website.

Published on 17.09.2010 - Hedderley's Regular Impressions

articles/test_data_for_regular_expressions.txt ยท Last modified: 2012/06/11 21:02 by Peter Hedderley