Method: Polars::StringExpr#contains
- Defined in:
- lib/polars/string_expr.rb
#contains(pattern, literal: false, strict: true) ⇒ Expr
Check if string contains a substring that matches a regex.
785 786 787 788 |
# File 'lib/polars/string_expr.rb', line 785 def contains(pattern, literal: false, strict: true) pattern = Utils.parse_into_expression(pattern, str_as_lit: true) Utils.wrap_expr(_rbexpr.str_contains(pattern, literal, strict)) end |