4 out
=$GOROOT/src
/pkg
/regexp
/syntax
/doc.go
8 /^Unicode character class
/,$d
10 ,x g
/^Possessive repetitions
:/d
13 ,s
/.
=(true|false
)/flag
&/g
14 ,s
/^Flags
:/ Flag syntax is xyz
(set) or
-xyz (clear) or xy-z
(set xy
, clear z
). The flags are
:\n/
16 ,x
/(^.
* .
*\n)+/ |
awk -F' ' '{printf(" %-14s %s\n", $1, $2)}'
18 // Copyright
2012 The Go Authors. All rights reserved.
19 // Use of this
source code is governed by a BSD-style
20 // license that can be found
in the LICENSE
file.
22 // DO NOT EDIT. This
file is generated by mksyntaxgo from the RE2 distribution.
25 Package syntax parses regular expressions into parse trees and compiles
26 parse trees into programs. Most clients of regular expressions will use the
27 facilities of package regexp
(such as Compile and Match
) instead of this package.
31 The regular expression syntax understood by this package when parsing with the Perl flag is as follows.
32 Parts of the syntax can be disabled by passing alternate flags to Parse.