def searchString( self, instring, maxMatches=_MAX_INT ):
try:<EOL><INDENT>return ParseResults([ t for t,s,e in self.scanString( instring, maxMatches ) ])<EOL><DEDENT>except ParseBaseException as exc:<EOL><INDENT>if ParserElement.verbose_stacktrace:<EOL><INDENT>raise<EOL><DEDENT>else:<EOL><INDENT>raise exc<EOL><DEDENT><DEDENT>
Another extension to :class:`scanString`, simplifying the access to the tokens found
to match the given parse expression.  May be called with optional
``maxMatches`` argument, to clip searching after 'n' matches are found.

Example::

    # a capitalized word starts with an uppercase letter, followed by zero or more lowercase letters
    cap_word = Word(alphas.upper(), alphas.lower())

    print(cap_word.searchString("More than Iron, more than Lead, more than Gold I need Electricity"))

    # the sum() builtin can be used to merge results into a single ParseResults object
    print(sum(cap_word.searchString("More than Iron, more than Lead, more than Gold I need Electricity")))

prints::

    [['More'], ['Iron'], ['Lead'], ['Gold'], ['I'], ['Electricity']]
    ['More', 'Iron', 'Lead', 'Gold', 'I', 'Electricity']