नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
Applies to:
Databricks SQL
Databricks Runtime 10.4 LTS and above
Returns true if str matches regex. This function is a synonym for rlike operator.
Syntax
regexp_like( str, regex )
Arguments
str: ASTRINGexpression to be matched.regex: ASTRINGexpression with a matching pattern.
Returns
A BOOLEAN.
The regex string must be a Java regular expression.
String literals are unescaped. For example, to match '\abc', a regular expression for regex can be '^\\abc$'.
Common error conditions
Examples
> SELECT regexp_like('%SystemDrive%\\Users\\John', '%SystemDrive%\\\\Users.*');
true
> SELECT regexp_like('abc', '[invalid');
Error: INVALID_PARAMETER_VALUE.PATTERN