Open autobot1122 opened 7 years ago
Thank you for reporting this!
Project Fare turns Regular Expressions into Automatons by applying the algorithms of dk.brics.automaton and xeger.
Unfortunately, I don't have an answer to your question, as Project Fare is really a port of the above Java projects. – We'd have to try
!00004377
in Java and compare the results.
You may use a different pattern or use a different engine to reverse the Regular Expression into an Automaton. As an example, you can use the Rex engine.
I've now also updated the README to include the above.
var randString = string.Empty; Xeger xegerGenerator = new Xeger("(?!0000)\d{4}"); randString = xegerGenerator.Generate();
randString = "!00004377";
randString should be any four digits except "0000" (four zeros)