def search(self, string, pos=<NUM_LIT:0>, endpos=sys.maxsize):
state = _State(string, pos, endpos, self.flags)<EOL>if state.search(self._code):<EOL><INDENT>return SRE_Match(self, state)<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Scan through string looking for a location where this regular
        expression produces a match, and return a corresponding MatchObject
        instance. Return None if no position in the string matches the
        pattern.