maxframe.liteframe.LiteFrame.str.fullmatch#

LiteFrame.str.fullmatch(pat, case: bool = True, flags: int = 0, na=<no_default>)#

Determine if each string entirely matches a regular expression.

Checks if each string in the Series or Index fully matches the specified regular expression pattern. This function is useful when the requirement is for an entire string to conform to a pattern, such as validating formats like phone numbers or email addresses.

Parameters:
  • 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 (scalar, optional) – Fill value for missing values. The default depends on dtype of the array. For the "str" dtype, False is used. For object dtype, numpy.nan is used. For the nullable StringDtype, pandas.NA is used.

Returns:

The function returns a Series, Index, or array of boolean values, where True indicates that the entire string matches the regular expression pattern and False indicates that it does not.

Return type:

Series/Index/array of boolean values

See also

match

Similar, but also returns True when only a prefix of the string matches the regular expression.

extract

Extract matched groups.