PHP component that generares random string from regex
php, regex
Solution
A library called ReverseRegex can be found here. As of January 2014 the project seems not to be dead.
Usage seems to be as simple as
$lexer = new Lexer('[a-z]{10}');
$gen = new SimpleRandom(10007);
$result = '';
$parser = new Parser($lexer,new Scope(),new Scope());
$parser->parse()->getResult()->generate($result,$gen);
echo $result;
Give it a regex, give it a random seed and generate your string. The above example, taken from the github-site, generates a ten character long random string consisting only of letters.
(originally found in this answer)
Problem
I am searching for PHP component that generates random string from regex. I've searched through this forum, but found only PERL etc. solutions (Random string that matches a regexp). Is there such an open source class?