]> Cypherpunks repositories - gostls13.git/commitdiff
regexp/syntax: clarify that \Z means Perl's \Z
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 18 May 2016 01:00:32 +0000 (01:00 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 18 May 2016 04:43:32 +0000 (04:43 +0000)
Fixes #14793

Change-Id: I408056d096cd6a999fa5e349704b5ea8e26d2e4e
Reviewed-on: https://go-review.googlesource.com/23201
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/regexp/syntax/doc.go

index e6c2ce5940ac2e3396648b9d141aac63b8817600..efc0b435711f3cfd1f50cc5d6d21090c5b5a7588 100644 (file)
@@ -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