-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
regexp: considers "\Q\E*" as valid regexp #11187
Labels
Milestone
Comments
Similar case is "\Q\E{2}" |
Perl and RE2 both reject |
Now I see it. (?:) is a group. |
CL https://golang.org/cl/17233 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Regexp package successfully compiles "\Q\E_", while re2 says:
re2/re2.cc:202: Error parsing '\Q\E_': no argument for repetition operator: *
Who is right here? What is the reason for difference?
go version devel +b0532a9 Mon Jun 8 05:13:15 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered: