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/syntax: [\s\S] -> string is unparsable #31807
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Comments
this is causing google/zoekt#82 |
Slightly simpler reproducer: https://play.golang.org/p/6prqe3xt2lT |
This was referenced May 3, 2019
/cc @rsc |
katiehockman
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
May 3, 2019
go/src/regexp/syntax/regexp.go Lines 142 to 154 in 3813edf
RE2 had a similar problem, but I fixed it just now in google/re2@cd23be7. ;) |
Change https://golang.org/cl/175679 mentions this issue: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?go 1.12
Does this issue reproduce with the latest release?
yes.
What operating system and processor architecture are you using (
go env
)?playground
What did you do?
See https://play.golang.org/p/ss5UUhg98GU
What did you expect to see?
I expect regexp to be able to parse back what syntax.Regexp.String() output.
What did you see instead?
"[^]a": error parsing regexp: missing closing ]:
[^]a
The text was updated successfully, but these errors were encountered: