'Return the result of a regular expression search.
Overrides `StateMachine.match()`.
Parameter `pattern`: `re` compiled regular expression.'

def match(self, pattern):

    return pattern.search(self.line)
