Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ It should be noted that when handling character set matching, Utf-8 standard cha

If the 'pattern' is not allowed regexp regular, throw error;

Support character match classes : https://github.com/google/re2/wiki/Syntax
Support character match classes : https://www.boost.org/doc/libs/latest/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

## Syntax

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support since Apache Doris 3.0.2

If the 'pattern' is not allowed regexp regular,throw error

Support character match classes : https://github.com/google/re2/wiki/Syntax
Support character match classes : https://www.boost.org/doc/libs/latest/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

## Syntax

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The `pos` parameter is of 'integer' type, used to specify the position in the st

If the `pattern` is not allowed regexp regular,throw error;

Support character match classes : https://github.com/google/re2/wiki/Syntax
Support character match classes : https://www.boost.org/doc/libs/latest/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

## Syntax
```sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
---

## Description

~
Performs a regular expression match on the string str, returning true if the match succeeds, otherwise false. pattern is the regular expression pattern.
It should be noted that when handling character set matching, Utf-8 standard character classes should be used. This ensures that functions can correctly identify and process various characters from different languages.

If the `pattern` is not allowed regexp regular,throw error;

Support character match classes : https://github.com/google/re2/wiki/Syntax
Support character match classes : https://www.boost.org/doc/libs/latest/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

Note: After testing, the performance of this function is about 12 times faster when the pattern does not include look-around zero-width assertions (`?=`, `?!`, `?<=`, `?<!`), so it is recommended to rewrite the regular expression to exclude these types of zero-width assertions when using this function.

## Syntax

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ REGEXP_EXTRACT_ALL 函数用于对给定字符串str执行正则表达式匹配

如果 'pattern' 参数不符合正则表达式,则抛出错误

支持的字符匹配种类 : https://github.com/google/re2/wiki/Syntax
支持的字符匹配种类 : https://www.boost.org/doc/libs/latest/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

## 语法

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
从 Apache Doris 3.0.2 版本开始支持
:::

支持的字符匹配种类 : https://github.com/google/re2/wiki/Syntax
支持的字符匹配种类 : https://www.boost.org/doc/libs/latest/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

## 语法

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pos参数为 'integer' 类型,用于指定字符串中开始搜索正则表达

如果 'pattern' 参数不符合正则表达式,则抛出错误

支持的字符匹配种类 : https://github.com/google/re2/wiki/Syntax
支持的字符匹配种类 : https://www.boost.org/doc/libs/latest/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

## 语法
```sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

如果 'pattern' 参数不符合正则表达式,则抛出错误

支持的字符匹配种类 : https://github.com/google/re2/wiki/Syntax
支持的字符匹配种类 : https://www.boost.org/doc/libs/latest/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

注: 经过测试,该函数在 pattern 不包含 look-around 类零宽断言(`?=`, `?!`, `?<=` `?<!`)时的性能约是包含时的12倍,所以在使用该函数时,更推荐改写正则表达式,使其不包含该类零宽断言

## 语法

Expand Down