Skip to content

Commit a88d0c7

Browse files
AdamCanadyChristoph Büscher
authored and
Christoph Büscher
committed
[Docs] Correct examples for * and + in regexp-syntax.asciidoc (#53210)
1 parent 09a3f45 commit a88d0c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/reference/query-dsl/regexp-syntax.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ abc? # matches 'ab' and 'abc'
7575
Repeat the preceding character one or more times. For example:
7676

7777
....
78-
ab+ # matches 'abb', 'abbb', 'abbbb', etc.
78+
ab+ # matches 'ab', 'abb', 'abbb', etc.
7979
....
8080
--
8181

@@ -85,7 +85,7 @@ ab+ # matches 'abb', 'abbb', 'abbbb', etc.
8585
Repeat the preceding character zero or more times. For example:
8686

8787
....
88-
ab* # matches 'ab', 'abb', 'abbb', 'abbbb', etc.
88+
ab* # matches 'a', 'ab', 'abb', 'abbb', etc.
8989
....
9090
--
9191

@@ -221,4 +221,4 @@ You can combine the `@` operator with `&` and `~` operators to create an
221221
=== Unsupported operators
222222
Lucene's regular expression engine does not support anchor operators, such as
223223
`^` (beginning of line) or `$` (end of line). To match a term, the regular
224-
expression must match the entire string.
224+
expression must match the entire string.

0 commit comments

Comments
 (0)