pandera.core.checks.Check.str_matches#

classmethod Check.str_matches(cls, pattern, **kwargs)[source]#

Ensure that string values match a regular expression.

Parameters
  • pattern (Union[str, Pattern]) – Regular expression pattern to use for matching

  • kwargs (Dict[str, Any]) – key-word arguments passed into the Check initializer.

  • kwargs – arguments forwarded to the Check constructor.

Return type

Check