openclean.function.value.regex module

Predicates that test whether a regular expression matches a given input string.

class openclean.function.value.regex.IsMatch(pattern, fullmatch=False, as_string=True, negated=False)

Bases: openclean.function.value.base.PreparedFunction

Match strings against a given regular expression.

eval(value)

Match the regular expression against the given string. If the value is not of type string it is converted to string if the type case flag is True. Otherwise, the result is False.

Parameters

value (string) – Input value that is matched against the regular expression.

Return type

bool

class openclean.function.value.regex.IsNotMatch(pattern, fullmatch=False, as_string=True)

Bases: openclean.function.value.regex.IsMatch

Match strings against a given regular expression. Returns True if the value does not match the expression.