exrex
exrex copied to clipboard
Irregular methods on regular expressions
I've tried generate some dictionary and count shows me something like 150 items. Looks fine, but generated dictionary was 500 MB of size. Then i found a problem. This result...
Hello @asciimoo I'm having problem to generate two sequences, the first is something like this: ['ABCX9995', 'ABCX9996', 'ABCX9997', 'ABCX9998', 'ABCX9999', 'ABCY0001', 'ABCY0002'] The last part(number sequence) start at 0001 and...
This is similar to #44, but instead of randomizing the entire output, I'd suggest that the `-r`/`--random` option could be combined with `-m`/`--max-number`, to produce N random strings (with the...
The regex `^(?=ca)([a-z]{4})$` should allow ``` cars cast cabs ``` ..but not ``` car cargo castrate ``` ...as they are not 4 letters long. exrex is generating strings starting with...
At the moment the test does not check what happens if you try to count a large regex but give the qwarg `limit=`.
It would be great if exrex can support seeding when generating a random string from pattern; something like ```python pattern = r'(A|N)[0-5]{3}' string1 = exrex.getone(pattern, seed=777) string2 = exrex.getone(pattern, seed=777)...
Hi there. I'm hitting this error ``` $ pip show exrex Name: exrex Version: 0.10.5 ... $ exrex "The path file (.*?) is not configured" -c [!] cannot handle expression...
If you download the source tarball from PyPI, the license is not present
The limit argument allows me to set a maximum length for the returned string, but i have no way to set the minimum. I attempted to use a forward lookahead...
``` # exrex -s '(aa|ba|ca)' (aa|ba|ca) ``` but actually it could be: `(a|b|c)a `