duckdb-web icon indicating copy to clipboard operation
duckdb-web copied to clipboard

Regex docs do not cover 'options' argument

Open david-cortes opened this issue 1 year ago • 0 comments

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.

david-cortes avatar May 10 '24 11:05 david-cortes