The function re.error raises an exception if a particular string contains no match for the given pattern.

The function re.error raises an exception if a particular string contains no match for the given pattern. Correct Answer False

The function re.error raises an exception when a string passed to one of its functions here is not a valid regular expression. It does not raise an exception if a particular string does not contain a match for the given pattern.

Related Questions