W3cubDocs

/pandas 0.25

pandas.Series.str.match

Series.str.match(self, pat, case=True, flags=0, na=nan) [source]

Determine if each string matches a regular expression.

Parameters:
pat : str

Character sequence or regular expression.

case : bool, default True

If True, case sensitive.

flags : int, default 0 (no flags)

re module flags, e.g. re.IGNORECASE.

na : default NaN

Fill value for missing values.

Returns:
Series/array of boolean values

See also

contains
Analogous, but less strict, relying on re.search instead of re.match.
extract
Extract matched groups.

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Series.str.match.html