Skip to main content

regex_captures

Function regex_captures 

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

Returns captures from the first match, or NULL when there is no match. Requires PostgreSQL 10 or newer. Capture elements are nullable because optional groups can be unmatched. Maps to PostgreSQL REGEXP_MATCH.