mirror of
https://github.com/golang/go
synced 2024-11-25 11:57:58 -07:00
regexp: document that backslashes are the escape character.
Fixes #1013. R=rsc, gri CC=golang-dev https://golang.org/cl/1938041
This commit is contained in:
parent
d5cfb3b3d5
commit
46db2e3c25
@ -16,8 +16,14 @@
|
||||
// '$'
|
||||
// '.'
|
||||
// character
|
||||
// '[' [ '^' ] character-ranges ']'
|
||||
// '[' [ '^' ] { character-range } ']'
|
||||
// '(' regexp ')'
|
||||
// character-range:
|
||||
// character '-' character
|
||||
//
|
||||
// All characters are UTF-8-encoded code points.
|
||||
// Backslashes escape special characters, including inside
|
||||
// character classes.
|
||||
//
|
||||
package regexp
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user