polars.Expr.str.count_match#
- Expr.str.count_match(pattern: str | Expr) Expr [source]#
Count all successive non-overlapping regex matches.
Deprecated since version 0.19.3: This method has been renamed to
count_matches()
.- Parameters:
- pattern
A valid regular expression pattern, compatible with the regex crate.
- Returns:
- Expr
Expression of data type
UInt32
. Returns null if the original value is null.