def parse_regex(rfile):
    """Read file and return regex"""
    if rfile:
        with open(rfile) as fp:
            lines = fp.readlines()
            lines = map(lambda x: x.strip(), lines)
            return lines
    return None