import re


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