import re


def _regex_match_get(pattern, text, position=1):
    """
    Return matched pattern or None
    """
    match = re.search(pattern, text)
    if match is not None:
        return match.group(position)
    else:
        return None