RgxGen
RgxGen copied to clipboard
Lookahead breaks pattern
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 like the same issue to me. Reporting for awareness.
To Reproduce Steps to reproduce the behavior:
- With regex pattern '^(?!(False|True)$)[a-zA-Z_][\w]*$'
- Use
RgxGen.parse(pattern).generate() - Get results such as:
yl[>B4BemOeLW2QQsNUPKtExdhKDwkroNwAptvhYx
Expected behavior
Any alphanumeric+underscore string starting with a letter or _ that is not True or False.
Environment (please complete the following information):
- OS: iOS
- JDK/JRE version = 17.0.8.1-tem
- RgxGen Version = 2.0
Thank you for reporting this.
Adding some examples for myself: