Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex docs do not cover 'options' argument #2855

Closed
david-cortes opened this issue May 10, 2024 · 1 comment · Fixed by #2930
Closed

Regex docs do not cover 'options' argument #2855

david-cortes opened this issue May 10, 2024 · 1 comment · Fixed by #2930

Comments

@david-cortes
Copy link
Contributor

david-cortes commented May 10, 2024

DuckDB's regex functions usually take an optional "options" argument, but it is not described what kind of options are supported or how to pass them.

The regex docs do not contain example usages either:
https://duckdb.org/docs/sql/functions/regular_expressions.html

They mention:

For the regular expression syntax, see the RE2 docs.

But this link does not describe the "options".

Browsing their repository, they seem to redirect the user to the header "re2.h", but this header lists the options as structs, so one would not know from looking at it that an option like "global" needs to passed as "g", for example.

@szarnyasg
Copy link
Collaborator

Hi @david-cortes, that's a good point. I added links to the options section from each regex function.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants