Browse Source

Update "Character classes" part

Audrey 11 years ago
parent
commit
d7023fbb3f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/reference/query-dsl/queries/regexp-syntax.asciidoc

+ 3 - 3
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.