From d7023fbb3f854854f395bd79579349eb59561cf9 Mon Sep 17 00:00:00 2001 From: Audrey Date: Tue, 8 Apr 2014 14:45:47 +0200 Subject: [PATCH] Update "Character classes" part --- docs/reference/query-dsl/queries/regexp-syntax.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/query-dsl/queries/regexp-syntax.asciidoc b/docs/reference/query-dsl/queries/regexp-syntax.asciidoc index 5d2c06105ce..0634b224703 100644 --- a/docs/reference/query-dsl/queries/regexp-syntax.asciidoc +++ b/docs/reference/query-dsl/queries/regexp-syntax.asciidoc @@ -184,10 +184,10 @@ negates the character class. The allowed forms are: [a-c] # 'a' or 'b' or 'c' [-abc] # '-' or 'a' or 'b' or 'c' [abc\-] # '-' or 'a' or 'b' or 'c' + [^abc] # any character except 'a' or 'b' or 'c' [^a-c] # any character except 'a' or 'b' or 'c' - [^a-c] # any character except 'a' or 'b' or 'c' - [-abc] # '-' or 'a' or 'b' or 'c' - [abc\-] # '-' or 'a' or 'b' or 'c' + [^-abc] # any character except '-' or 'a' or 'b' or 'c' + [^abc\-] # any character except '-' or 'a' or 'b' or 'c' Note that the dash `"-"` indicates a range of characeters, unless it is the first character or if it is escaped with a backslash.