class_docstr: Namespace for string related expressions.
class_docstr_tok: ["Namespace","for","string","related","expressions","."]
docstr: Use the aho-corasick algorithm to find matches.
  
  This version determines if any of the patterns find a match.
  
  Parameters
  ----------
  patterns
      String patterns to search.
  ascii_case_insensitive
      Enable ASCII-aware case insensitive matching.
      When this option is enabled, searching will be performed without respect
      to case for ASCII letters (a-z and A-Z) only.
  
  Examples
  --------
  >>> _ = pl.Config.set_fmt_str_lengths(100)
  >>> df = pl.DataFrame(
  ...     {
  ...         "lyrics": [
  ...             "Everybody wants to rule the world",
  ...             "Tell me what you want, what you really really want",
  ...             "Can you feel the love tonight",
  ...         ]
  ...     }
  ... )
  >>> df.with_columns(
  ...     pl.col("lyrics").str.contains_any(["you", "me"]).alias("contains_any")
  ... )
  shape: (3, 2)
  ┌────────────────────────────────────────────────────┬──────────────┐
  │ lyrics                                             ┆ contains_any │
  │ ---                                                ┆ ---          │
  │ str                                                ┆ bool         │
  ╞════════════════════════════════════════════════════╪══════════════╡
  │ Everybody wants to rule the world                  ┆ false        │
  │ Tell me what you want, what you really really want ┆ true         │
  │ Can you feel the love tonight                      ┆ true         │
  └────────────────────────────────────────────────────┴──────────────┘
docstr_tok: ["Use","the","aho-corasick","algorithm","to","find","matches",".","This","version","determines","if","any","of","the","patterns","find","a","match",".","Parameters","--","--","--","--","--","patterns","String","patterns","to","search",".","ascii_case_insensitive","Enable","ASCII-aware","case","insensitive","matching",".","When","this","option","is","enabled",",","searching","will","be","performed","without","respect","to","case","for","ASCII","letters","(","a-z","and","A-Z",")","only",".","Examples","--","--","--","--",">",">",">","_","=","pl.Config.set_fmt_str_lengths","(","100",")",">",">",">","df","=","pl.DataFrame","(","...","{","...","``","lyrics","''",":","[","...","``","Everybody","wants","to","rule","the","world","''",",","...","``","Tell","me","what","you","want",",","what","you","really","really","want","''",",","...","``","Can","you","feel","the","love","tonight","''",",","...","]","...","}","...",")",">",">",">","df.with_columns","(","...","pl.col","(","``","lyrics","''",")",".str.contains_any","(","[","``","you","''",",","``","me","''","]",")",".alias","(","``","contains_any","''",")","...",")","shape",":","(","3",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","lyrics","\u2506","contains_any","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","str","\u2506","bool","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","Everybody","wants","to","rule","the","world","\u2506","false","\u2502","\u2502","Tell","me","what","you","want",",","what","you","really","really","want","\u2506","true","\u2502","\u2502","Can","you","feel","the","love","tonight","\u2506","true","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def contains_any(
      self, patterns: IntoExpr, *, ascii_case_insensitive: bool = False
  ) -> Expr:
      """
      Use the aho-corasick algorithm to find matches.
  
      This version determines if any of the patterns find a match.
  
      Parameters
      ----------
      patterns
          String patterns to search.
      ascii_case_insensitive
          Enable ASCII-aware case insensitive matching.
          When this option is enabled, searching will be performed without respect
          to case for ASCII letters (a-z and A-Z) only.
  
      Examples
      --------
      >>> _ = pl.Config.set_fmt_str_lengths(100)
      >>> df = pl.DataFrame(
      ...     {
      ...         "lyrics": [
      ...             "Everybody wants to rule the world",
      ...             "Tell me what you want, what you really really want",
      ...             "Can you feel the love tonight",
      ...         ]
      ...     }
      ... )
      >>> df.with_columns(
      ...     pl.col("lyrics").str.contains_any(["you", "me"]).alias("contains_any")
      ... )
      shape: (3, 2)
      ┌────────────────────────────────────────────────────┬──────────────┐
      │ lyrics                                             ┆ contains_any │
      │ ---                                                ┆ ---          │
      │ str                                                ┆ bool         │
      ╞════════════════════════════════════════════════════╪══════════════╡
      │ Everybody wants to rule the world                  ┆ false        │
      │ Tell me what you want, what you really really want ┆ true         │
      │ Can you feel the love tonight                      ┆ true         │
      └────────────────────────────────────────────────────┴──────────────┘
  
      """
      patterns = parse_as_expression(
          patterns, str_as_lit=False, list_as_lit=False
      )
      return wrap_expr(
          self._pyexpr.str_contains_any(
              patterns, ascii_case_insensitive
          )
      )
  
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING
  import polars._reexport
  from polars import functions
  from polars.datatypes import Date, Datetime, Int32, Time, py_type_to_dtype
  from polars.exceptions import ChronoFormatWarning
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter, rename_use_earliest_to_ambiguous
  from polars.utils.various import find_stacklevel
label_desc: Use image node_id 51 for calling the ExprStringNameSpace obj's underlying member method code with example usage: obj.contains_any(patterns) and returns: wrap_expr