RgxGen
RgxGen copied to clipboard
Regex: generate matching and non matching strings based on regex pattern.
There is a general issue with lookaround patterns, Whenever lookaround pattern part should influence another part of pattern (values that can be produced in another part of pattern) - it...
**Describe the bug** Consider a common use-case: We have a regex, used to validate a "password" string. F.e. `^(?=.*[A-Z])(?=.*[!@#$&*])(?=.*[0-9])(?=.*[a-z])[A-Za-z0-9@$!*#&]{8,25}$` Limits: * 1+ lower-case eng char * 1+ uppercase eng char...
Here is a sample of what could be generated with MULTILINE=True/False For pattern = `^a` When `MULTILINE` is `FALSE` Generated values = [`a`] When `MULTILINE` is `TRUE` Generated values =...
**Describe the bug** It seems like negative lookahead breaks the pattern generated by RgxGen. I am aware that lookaheads have limited support but #63 mentioned in README/limitations does not seem...
**Describe the bug** I get a NPE with the following regex `^[^\p{C}\p{Z}\s]*[^\p{C}]+[^\p{C}\p{Z}]*$` which didn't happen on version 1.4. **To Reproduce** Steps to reproduce the behavior: 1. regex: `^[^\p{C}\p{Z}\s]*[^\p{C}]+[^\p{C}\p{Z}]*$` 2. `RgxGen.parse("^[^\\p{C}\\p{Z}\\s]*[^\\p{C}]+[^\\p{C}\\p{Z}]*$").generate()`...
Image contains unicode category keys that fail:  Below are the categories and list of characters that seem to not belong to that category anymore. i.e. in java 17 -...
**Describe the bug** I tried to generate lots of random phone numbers locally and at one point noticed nulls in generated strings **To Reproduce** Unfortunately, I can't tell the exact...