-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illegal Capacity Argument Exception Raised #90
Comments
Do you mean I don't think your regex is valid. If I ask regex101 about
And if I ask regex101 about
The "Illegal capacity" error in RgxGen also means "Character range is out of order". For example, asking RgxGen to generate |
When testing with regex101 using |
Ah I see. RgxGen's supported syntax is not complete, but for what it's worth I think you can use |
I see two issues:
Yes, your version does work but as you say "the supported syntax is not complete" |
Stacktrace generated with the following regex:
String pp = "[\\i-[:]][\\c-[:]]*";
RgxGen rgxGen = new RgxGen(pp);
Generates:
java.lang.IllegalArgumentException: Illegal Capacity: -13
Using the online regex testing https://regex101.com
The following is valid: \\:\\:c:
RgxGen Version :1.4
OpenJDK 17
The text was updated successfully, but these errors were encountered: