def METHOD_NAME(self, searchText):
    rtn = None
    try:
        rtn = self.compileRegex(searchText)
    except re.error as e:
        LOGGER.info("Problem preparing regular expression: " + e.msg)
        rtn = None
    except Exception as e:
        LOGGER.info("Problem preparing regular expression")
        rtn = None
    return rtn