Skip to content

Feature: support regexp_extract functions #17655

@sundy-li

Description

@sundy-li

Summary

Description for this feature.

regexp_extract(string, pattern[, group = 0])

 regexp_extract('deep_seek', '([a-z ]+)_?', 1);  ---> deep

regexp_extract(string, pattern, name_list)

 regexp_extract('2023-04-15', '(\d+)-(\d+)-(\d+)', ['y', 'm', 'd'])  --->  {'y':'2023', 'm':'04', 'd':'15'}

regexp_extract_all(string, regex[, group = 0])

regexp_extract_all('deep_seek', '([a-z ]+)_?', 1)  --> [hello, world]

reference: https://duckdb.org/docs/stable/sql/functions/regular_expressions.html

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions