15 lines
448 B
Plaintext
15 lines
448 B
Plaintext
[discete]
|
|
[[esql-rlike-operator]]
|
|
==== `RLIKE`
|
|
|
|
Use `RLIKE` to filter data based on string patterns using using
|
|
<<regexp-syntax,regular expressions>>. `RLIKE` usually acts on a field placed on
|
|
the left-hand side of the operator, but it can also act on a constant (literal)
|
|
expression. The right-hand side of the operator represents the pattern.
|
|
|
|
[source,esql]
|
|
----
|
|
FROM employees
|
|
| WHERE first_name RLIKE ".leja.*"
|
|
| KEEP first_name, last_name
|
|
---- |