1
0
mirror of https://github.com/golang/go synced 2024-10-05 18:21:21 -06:00
go/src/regexp
Russ Cox 0680e9c0c1 regexp/syntax: fix handling of \Q...\E
It's not a group: must handle the inside as a sequence of literal chars,
not a single literal string.

That is, \Qab\E+ is the same as ab+, not (ab)+.

Fixes #11187.

Change-Id: I5406d05ccf7efff3a7f15395bdb0cfb2bd23a8ed
Reviewed-on: https://go-review.googlesource.com/17233
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-12-01 22:45:12 +00:00
..
syntax regexp/syntax: fix handling of \Q...\E 2015-12-01 22:45:12 +00:00
testdata
all_test.go regexp: fix LiteralPrefix for certain onepass progs 2015-11-25 17:28:33 +00:00
backtrack.go
example_test.go regexp: add runnable example to regex.Split 2015-09-23 03:29:32 +00:00
exec2_test.go
exec_test.go
exec.go
find_test.go
onepass_test.go regexp: fix one-pass compilation 2015-11-25 17:44:17 +00:00
onepass.go regexp: fix one-pass compilation 2015-11-25 17:44:17 +00:00
regexp.go regexp: add Copy method to Regexp 2015-11-25 17:26:37 +00:00