def _search(self, string):
"""
Takes a string and returns a re.MatchObject for the Parser's regex.
"""
# TODO(LH): catch exceptions for malformed regex
return re.search(self.regex, string, re.DOTALL | re.IGNORECASE)
文章目录