def __init__(self, pattern, regex_options=<NUM_LIT:0>):
super(RegexSearcher, self).__init__()<EOL>self._regex = re.compile(pattern, regex_options)<EOL>
:param pattern: The regex to search for, as a single compiled regex
    or a string that will be processed as a regex.
:param regex_options: Options passed to the regex engine.