W3cubDocs

/pandas 0.23

pandas.Series.str.match

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

Determine if each string matches a regular expression.

Parameters:

pat : string

Character sequence or regular expression

case : boolean, 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.

as_indexer

Deprecated since version 0.21.0.

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.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.Series.str.match.html