1
0
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:
Rob Pike 2010-08-09 15:11:02 -07:00
parent d5cfb3b3d5
commit 46db2e3c25

View File

@ -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