class_docstr: Namespace for string related expressions.
class_docstr_tok: ["Namespace","for","string","related","expressions","."]
docstr: Count all successive non-overlapping regex matches.
  
  .. deprecated:: 0.19.3
      This method has been renamed to :func:`count_matches`.
  
  Parameters
  ----------
  pattern
      A valid regular expression pattern, compatible with the `regex crate
      <https://docs.rs/regex/latest/regex/>`_.
  
  Returns
  -------
  Expr
      Expression of data type :class:`UInt32`. Returns null if the
      original value is null.
docstr_tok: ["Count","all","successive","non-overlapping","regex","matches",".","..","deprecated",":",":","0.19.3","This","method","has","been","renamed","to",":","func",":","`","count_matches","`",".","Parameters","--","--","--","--","--","pattern","A","valid","regular","expression","pattern",",","compatible","with","the","`","regex","crate","<","https",":","\/\/docs.rs\/regex\/latest\/regex\/",">","`","_",".","Returns","--","--","--","-","Expr","Expression","of","data","type",":","class",":","`","UInt32","`",".","Returns","null","if","the","original","value","is","null","."]
code: def count_match(self, pattern: str | Expr) -> Expr:
      """
      Count all successive non-overlapping regex matches.
  
      .. deprecated:: 0.19.3
          This method has been renamed to :func:`count_matches`.
  
      Parameters
      ----------
      pattern
          A valid regular expression pattern, compatible with the `regex crate
          <https://docs.rs/regex/latest/regex/>`_.
  
      Returns
      -------
      Expr
          Expression of data type :class:`UInt32`. Returns null if the
          original value is null.
  
      """
      return self.count_matches(pattern)
  
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 45 for calling the ExprStringNameSpace obj's underlying member method code with example usage: obj.count_match(pattern) and returns: self