mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 23:07:45 +00:00
Corrected regexp syntax docs for COMPLEMENT
This commit is contained in:
parent
c90b4f3bae
commit
c3cd8564df
@ -220,12 +220,20 @@ Complement::
|
||||
--
|
||||
|
||||
The complement is probably the most useful option. The shortest pattern that
|
||||
follows a tilde `"~"` is negated. For the string `"abcdef"`:
|
||||
follows a tilde `"~"` is negated. For instance, `"ab~cd" means:
|
||||
|
||||
* Starts with `a`
|
||||
* Followed by `b`
|
||||
* Followed by a string of any length that it anything but `c`
|
||||
* Ends with `d`
|
||||
|
||||
For the string `"abcdef"`:
|
||||
|
||||
ab~df # match
|
||||
ab~cf # no match
|
||||
a~(cd)f # match
|
||||
a~(bc)f # no match
|
||||
ab~cf # match
|
||||
ab~cdef # no match
|
||||
a~(cb)def # match
|
||||
a~(bc)def # no match
|
||||
|
||||
Enabled with the `COMPLEMENT` or `ALL` flags.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user