pub fn regex_captures<L, R>(
expression: impl IntoExpr<L>,
pattern: impl IntoExpr<R>,
) -> Expr<Option<Vec<Option<String>>>>where
L: StringUnaryExpr,
R: StringUnaryExpr,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.