-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Rust flavor produces error for valid regex #2151
Comments
This comment was marked as outdated.
This comment was marked as outdated.
You cannot disable unicode in Rust, since that caused a lot of issues. See #1208 If you have a good solution for it, I'd be happy to implement it. |
@firasdib I don't know Rust, but it seems that rust-lang/regex accepts both |
I get an error with the Rust version running on regex101 - maybe I've compiled an older version? |
@firasdib Probably. This snippet (written by ChatGPT) runs just as fine with either |
It seems that this feature was added recently in issue #955 and corresponding PR #956. Oh, and you might want to modify the Go flavor too, since re2 now supports |
Thank you for the info. I'll try to get to this when I get more time on my hands. Closing in favor of #2167 |
Bug Description
I'm assuming your using
rust-lang/regex
as your rust library.(I couldn't find verification in your docs but that's what your code generation uses.)
One of its examples doesn't work on you're page.
(?-u)(?<cstr>[^\x00]+)\x00
taken from its READMEReproduction steps
Enter
(?-u)(?<cstr>[^\x00]+)\x00
Expected Outcome
The ability to test strings againts this valid regex.
The text was updated successfully, but these errors were encountered: