From cdcb8271a411bac78aa886a5998ac2c10b23f058 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 18 May 2016 01:00:32 +0000 Subject: [PATCH] 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 --- src/regexp/syntax/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0