生成一个正则表达式的测试数据 [英] Generate test data from a REGEX
问题描述
伙计们,
有谁知道一个DLL或.NET代码,将一个正则表达式生成测试数据?
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.
不幸的是,我写在C#中,我需要在运行时生成的测试数据。
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.
问候,
布雷特Nieland
Brett Nieland
推荐答案
有一个叫雷克斯微软reasearch工具,探索.NET的正则表达式高效地生成成员。 http://research.microsoft.com/en-us/projects/rex/一>
There is a Microsoft reasearch tool called Rex that explores .NET regexes and generates members efficiently. http://research.microsoft.com/en-us/projects/rex/
正如我所看到的,你已经尝试过雷克斯:也许博客的克里斯Eargle帖子帮助你吧。
As I have seen, you already tried Rex: Maybe the blog post from Chris Eargle helps you then.
这篇关于生成一个正则表达式的测试数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!