From: Brad Fitzpatrick Date: Wed, 18 May 2016 01:00:32 +0000 (+0000) Subject: regexp/syntax: clarify that \Z means Perl's \Z X-Git-Tag: go1.7beta1~185 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cdcb8271a411bac78aa886a5998ac2c10b23f058;p=gostls13.git regexp/syntax: clarify that \Z means Perl's \Z Fixes #14793 Change-Id: I408056d096cd6a999fa5e349704b5ea8e26d2e4e Reviewed-on: https://go-review.googlesource.com/23201 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/regexp/syntax/doc.go b/src/regexp/syntax/doc.go index e6c2ce5940..efc0b43571 100644 --- a/src/regexp/syntax/doc.go +++ b/src/regexp/syntax/doc.go @@ -66,7 +66,7 @@ Grouping: Empty strings: ^ at beginning of text or line (flag m=true) - $ at end of text (like \z not \Z) or line (flag m=true) + $ at end of text (like \z not Perl's \Z) or line (flag m=true) \A at beginning of text \b at ASCII word boundary (\w on one side and \W, \A, or \z on the other) \B not at ASCII word boundary