From a88d0c7ca3959e3057923fea545875bbd0dd60ed Mon Sep 17 00:00:00 2001 From: Adam Canady Date: Fri, 6 Mar 2020 11:16:41 -0500 Subject: [PATCH] [Docs] Correct examples for * and + in regexp-syntax.asciidoc (#53210) --- docs/reference/query-dsl/regexp-syntax.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/query-dsl/regexp-syntax.asciidoc b/docs/reference/query-dsl/regexp-syntax.asciidoc index cd8e2466172..11b52e360c3 100644 --- a/docs/reference/query-dsl/regexp-syntax.asciidoc +++ b/docs/reference/query-dsl/regexp-syntax.asciidoc @@ -75,7 +75,7 @@ abc? # matches 'ab' and 'abc' Repeat the preceding character one or more times. For example: .... -ab+ # matches 'abb', 'abbb', 'abbbb', etc. +ab+ # matches 'ab', 'abb', 'abbb', etc. .... -- @@ -85,7 +85,7 @@ ab+ # matches 'abb', 'abbb', 'abbbb', etc. Repeat the preceding character zero or more times. For example: .... -ab* # matches 'ab', 'abb', 'abbb', 'abbbb', etc. +ab* # matches 'a', 'ab', 'abb', 'abbb', etc. .... -- @@ -221,4 +221,4 @@ You can combine the `@` operator with `&` and `~` operators to create an === Unsupported operators Lucene's regular expression engine does not support anchor operators, such as `^` (beginning of line) or `$` (end of line). To match a term, the regular -expression must match the entire string. \ No newline at end of file +expression must match the entire string.