import re


def regXpParse(data, regex):
    """Use Regex to parse data
    Input: data the string need to be parsed
    Input: regex the pattern to parse
    Output: return the matching string
    """
    ret = None
    findResult = re.match(regex, data)
    if findResult:
        print("parsing result: %s" %findResult.group(1))
        ret = findResult.group(1)
    else:
        ret = 'NotFound'

    return ret