Series.str.
match
Determine if each string starts with a match of a regular expression.
pat (str) – Character sequence or regular expression.
case (bool, default True) – If True, case sensitive.
flags (int, default 0 (no flags)) – Regex module flags, e.g. re.IGNORECASE.
na (default NaN) – Fill value for missing values.
Series/array of boolean values
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.