polars.Series.str.count_match#
- Series.str.count_match(pattern: str | Series) Series [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. Can also be a
Series
of regular expressions.
- Returns:
- Series
Series of data type
UInt32
. Returns null if the original value is null.