commit | 1d3baf20dcac2d9ad88634ac3fe75e9f6d966971 | [log] [tgz] |
---|---|---|
author | Tom Payne <twpayne@gmail.com> | Fri Oct 23 23:40:00 2020 +0100 |
committer | Emmanuel Odeke <emmanuel@orijtech.com> | Wed Nov 25 15:10:09 2020 +0000 |
tree | 84c20a79e29879d988ac60bd2569c8286df1cafb | |
parent | 750b3729dcb1e0aac239bc69959355ec2242111d [diff] |
regexp/syntax: add note about Unicode character classes As proposed on golang-nuts: https://groups.google.com/g/golang-nuts/c/M3lmSUptExQ/m/hRySV9GsCAAJ Includes the latest updates from re2's mksyntaxgo: https://code.googlesource.com/re2/+/refs/heads/master/doc/mksyntaxgo Change-Id: Ib7b79aa6531f473feabd0a7f1d263cd65c4388e4 Reviewed-on: https://go-review.googlesource.com/c/go/+/264678 Reviewed-by: Russ Cox <rsc@golang.org> Trust: Emmanuel Odeke <emmanuel@orijtech.com>
diff --git a/src/regexp/syntax/doc.go b/src/regexp/syntax/doc.go index efc0b43..b3f9136 100644 --- a/src/regexp/syntax/doc.go +++ b/src/regexp/syntax/doc.go
@@ -66,7 +66,7 @@ Empty strings: ^ at beginning of text or line (flag m=true) - $ at end of text (like \z not Perl's \Z) or line (flag m=true) + $ at end of text (like \z not \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 @@ -127,5 +127,6 @@ [[:word:]] word characters (== [0-9A-Za-z_]) [[:xdigit:]] hex digit (== [0-9A-Fa-f]) +Unicode character classes are those in unicode.Categories and unicode.Scripts. */ package syntax