def searchString( self, instring, maxMatches=_MAX_INT ):
        try:
            return ParseResults([ t for t,s,e in self.scanString( instring, maxMatches ) ])
        except ParseBaseException as exc:
            if ParserElement.verbose_stacktrace:
                raise
            else:
                # catch and re-raise exception from here, clears out pyparsing internal stack trace
                raise exc
Another extension to C{L{scanString}}, simplifying the access to the tokens found
dataset/ETHPy150Open pypa/pip/pip/_vendor/pyparsing.py/ParserElement.searchString