pandas.Series.str.fullmatch
pandas 3.1.1 · Series and accessors · method
Test whether a regular expression matches the whole string.
Call syntax
Series.str.fullmatch(pat, case=True, flags=0, na=…)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
pat |
Required Positional or keyword |
str Specify the substring or regular expression to match. |
case |
Optional Positional or keyword Default True |
bool Choose whether uppercase and lowercase text are treated as distinct. |
flags |
Optional Positional or keyword Default 0 |
int Pass regular-expression modifiers such as re.IGNORECASE. |
na |
Optional Positional or keyword |
scalar Supply the value to use for records whose input is missing. |
Returns
Series/Index/array of boolean values