Method: Polars::StringExpr#extract_all
- Defined in:
- lib/polars/string_expr.rb
#extract_all(pattern) ⇒ Expr
Extracts all matches for the given regex pattern.
Extracts each successive non-overlapping regex match in an individual string as an array.
1133 1134 1135 1136 |
# File 'lib/polars/string_expr.rb', line 1133 def extract_all(pattern) pattern = Utils.parse_into_expression(pattern, str_as_lit: true) Utils.wrap_expr(_rbexpr.str_extract_all(pattern)) end |