Skip to content

Commit 8e24bcf

Browse files
committed
[DOCS] SQL: Update link for supported regex in RLIKE docs (#55830)
The`RLIKE` function docs points users to [Java’s Pattern class doc][0] for regular expression syntax. However, these docs include shorthand character classes, such as `[\d]`, `[\s]`, and `[\w]`. These character classes are not supported in Elasticsearch, which may confuse users. This updates the SQL `RLIKE` docs to refer to the ES [regular expression syntax docs][1], which only documents supported syntax. [0]: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/regex/Pattern.html [1]: https://www.elastic.co/guide/en/elasticsearch/reference/master/regexp-syntax.html Relates to #55231
1 parent 29e36fc commit 8e24bcf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/reference/sql/functions/like-rlike.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ RLIKE constant_exp <2>
7272
This operator is similar to `LIKE`, but the user is not limited to search for a string based on a fixed pattern with the percent sign (`%`)
7373
and underscore (`_`); the pattern in this case is a regular expression which allows the construction of more flexible patterns.
7474

75-
For more details about the regular expressions syntax, https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/regex/Pattern.html[Java's Pattern class javadoc]
76-
is a good starting point.
75+
For supported syntax, see <<regexp-syntax>>.
7776

7877
[source, sql]
7978
----

0 commit comments

Comments
 (0)