crdoconnor / xeger

Library to generate random strings from regular expressions.
Other
121 stars 21 forks source link

Is it possible to use it in a sequential way? #14

Open ArgiesDario opened 4 years ago

ArgiesDario commented 4 years ago

I found this really useful, but I'm trying to get strings sequentially to perform some brute force actions. Is it possible to do it? Of course using regex with limited options (not an: a* for example)

Thank you!

k15z commented 3 years ago

It doesn't appear to be possible to do this with xeger; I needed something similar and ended up writing my own implementation, intxeger which supports this functionality. You can generate all strings that match a particular regex (subject to a constraint on the maximum length of any repeated section).