You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`matches_term(expression, term)` for full text search.
51
+
*`matches_term(expression, term)` for full text search. For details, read the [Fulltext Search](/user-guide/logs/fulltext-search.md).
52
+
*`regexp_extract(str, regexp)` to extract the first substring in a string that matches a regular expression. Returns `NULL` if no match is found.
52
53
53
-
For details, read the [Fulltext Search](/user-guide/logs/fulltext-search.md).
54
+
#### regexp_extract
55
+
56
+
Extracts the first substring in a string that matches a [regular expression](https://docs.rs/regex/latest/regex/#syntax). Returns `NULL` if no match is found.
57
+
58
+
```sql
59
+
regexp_extract(str, regexp)
60
+
```
61
+
62
+
**Arguments:**
63
+
64
+
-**str**: String expression to operate on. Can be a constant, column, or function, and any combination of operators.
65
+
-**regexp**: Regular expression to match against. Can be a constant, column, or function.
66
+
67
+
**Note on Escaping:**
68
+
69
+
GreptimeDB's regex escape behavior differs between MySQL and PostgreSQL compatibility modes:
0 commit comments