Reputation: 55
How can I create such program in Java that could accept automata regular expression and a minimum string length (int) and generate possible Strings?
examples of regular regular expressions are
regex possible strings
(a+b)* abbababababbbab
ab(a+b) ababababab, abaaaa, abbbbb, abbaba, . . .
Upvotes: 1
Views: 1298
Reputation: 5090
This library mentioned in this post (which generates a random, matching string, I believe) maybe of use
Using Regex to generate Strings rather than match them
Upvotes: 0
Reputation: 421220
Upvotes: 2