regexp_escape()

Escapes special patterns to turn string into a regular expression similarly to Python's re.escape function.

Reference: DuckDB 2.0.0

Arguments & returns

regexp_escape(string)

Scalar
Overload link string Returns
#01 VARCHAR VARCHAR

Example

regexp_escape example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Engine example · Run to view results.