1
0
mirror of https://github.com/golang/go synced 2024-10-05 19: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 regexp: trivial change in comments to update code.google.com link 2015-04-27 20:18:25 +00:00
all_test.go regexp: fix LiteralPrefix for certain onepass progs 2015-11-25 17:28:33 +00:00
backtrack.go regexp: set b.cap[0] and b.cap[1] only when captures requested 2015-04-17 17:10:07 +00:00
example_test.go regexp: add runnable example to regex.Split 2015-09-23 03:29:32 +00:00
exec2_test.go
exec_test.go regexp: small correction to test comment 2015-06-14 17:09:13 +00:00
exec.go regexp: port RE2's bitstate backtracker to the regexp package 2015-03-23 16:17:42 +00:00
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