From 03525779fb9bcf48cb8f41d94ce0df74a68c1323 Mon Sep 17 00:00:00 2001 From: Olivier Perret Date: Thu, 9 Jul 2020 11:58:43 +0200 Subject: [PATCH] [doc] Escape asciidoc meta-character --- doc/pages/regex.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/pages/regex.asciidoc b/doc/pages/regex.asciidoc index 6c1a5ee7..b7fd5391 100644 --- a/doc/pages/regex.asciidoc +++ b/doc/pages/regex.asciidoc @@ -38,8 +38,8 @@ class is negated, meaning that it matches every character not specified in the character class. Literals match themselves, including syntax characters, so `^` -does not need to be escaped in a character class. `[*+]` matches both -the `*` character and the `+` character. Literal escape sequences are +does not need to be escaped in a character class. `[\*+]` matches both +the `\*` character and the `+` character. Literal escape sequences are supported, so `[\n\r]` matches both the line feed and carriage return characters.