Commit 46db2e3c authored by Rob Pike's avatar Rob Pike

regexp: document that backslashes are the escape character.

Fixes #1013.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/1938041
parent d5cfb3b3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment