9

Folks,

Does anyone know of a dll or .net code that will generate test data from a REGEX?

I am aware of The Regular Expression Generator and the solutions offered in the stackoverflow question Using Regex to generate Strings rather than match them.

Unfortunately, I am writing in C#, and I need to generate the test data at run time.

I have also tried Rex, but it blows an error when I try to load it on a virtual machine.

Any help would be appreciated.

Regards,

Brett Nieland

Community
  • 1
  • 1
bnieland
  • 6,047
  • 4
  • 40
  • 66

2 Answers2

2

There is a Microsoft reasearch tool called Rex that explores .NET regexes and generates members efficiently. http://research.microsoft.com/en-us/projects/rex/

As I have seen, you already tried Rex: Maybe the blog post from Chris Eargle helps you then.

Martin Buberl
  • 45,844
  • 25
  • 100
  • 144
  • Thanks, that article is what initially led me to REX! I sure wish they would release the source code... – bnieland Jan 21 '11 at 04:30
0

You may also want to look at project Fare. See the answer at this question: convert nfa to dfa

Community
  • 1
  • 1
Nikos Baxevanis
  • 10,868
  • 2
  • 46
  • 80