Series.str.
match
Determine if each string starts with a match of a regular expression.
Character sequence or regular expression.
If True, case sensitive.
Regex module flags, e.g. re.IGNORECASE.
Fill value for missing values. The default depends on dtype of the array. For object-dtype, numpy.nan is used. For StringDtype, pandas.NA is used.
numpy.nan
StringDtype
pandas.NA
See also
fullmatch
Stricter matching that requires the entire string to match.
contains
Analogous, but less strict, relying on re.search instead of re.match.
extract
Extract matched groups.