Method: Polars::StringExpr#replace_all
- Defined in:
- lib/polars/string_expr.rb
#replace_all(pattern, value, literal: false) ⇒ Expr
Replace all matching regex/literal substrings with a new string value.
1405 1406 1407 1408 1409 |
# File 'lib/polars/string_expr.rb', line 1405 def replace_all(pattern, value, literal: false) pattern = Utils.parse_into_expression(pattern, str_as_lit: true) value = Utils.parse_into_expression(value, str_as_lit: true) Utils.wrap_expr(_rbexpr.str_replace_all(pattern, value, literal)) end |