(self, testString, parseAll=True)
Method for quick testing of a parser against a test string. Good for simple
        inline microtests of sub expressions while building up larger parser.

        Parameters:
         - testString - to test against this expression for a match
         - parseAll - (default= ``True``) - flag to pass to :class:`parseString` when running tests

        Example::

            expr = Word(nums)
            assert expr.matches("100")
Method for quick testing of a parser against a test string. Good for simple
        inline microtests of sub expressions while building up larger parser.
Method for quick testing of a parser against a test string . Good for simple inline microtests of sub expressions while building up larger parser .
def matches(self, testString, parseAll=True):
        """
        Method for quick testing of a parser against a test string. Good for simple
        inline microtests of sub expressions while building up larger parser.

        Parameters:
         - testString - to test against this expression for a match
         - parseAll - (default= ``True``) - flag to pass to :class:`parseString` when running tests

        Example::

            expr = Word(nums)
            assert expr.matches("100")
        """
        try:
            self.parseString(_ustr(testString), parseAll=parseAll)
            return True
        except ParseBaseException:
            return False
def matches ( self , testString , parseAll = True ) : try : self . parseString ( _ustr ( testString ) , parseAll = parseAll ) return True except ParseBaseException : return False