Skip to main content

regex_extract

Function regex_extract 

Source
pub fn regex_extract<L, R>(
    expression: impl IntoExpr<L>,
    pattern: impl IntoExpr<R>,
) -> Expr<Option<String>>
Expand description

Returns the first matching substring, or NULL when there is no match. Requires PostgreSQL 15 or newer. Maps to PostgreSQL REGEXP_SUBSTR.