code: def _fullmatch(pattern, text, *args, **kwargs):
      
      match = re.match(pattern, text, *args, **kwargs)
      return match if match.group(0) == text else None
docs: re.fullmatch is not available on Python<3.4.