Module pyparsing :: Class Regex
[frames | no frames]

Type Regex

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   Regex


Token for matching strings that match a given regular expression. Defined with string specifying the regular expression in a form recognized by the inbuilt Python re module.
Method Summary
  __init__(self, pattern, flags)
The parameters pattern and flags are passed to the re.compile() function as-is.
  __str__(self)
  parseImpl(self, instring, loc, doActions)
Inherited from Token: setName
Inherited from ParserElement: __add__, __and__, __invert__, __or__, __radd__, __rand__, __repr__, __ror__, __rxor__, __xor__, checkRecursion, copy, ignore, leaveWhitespace, parse, parseFile, parseString, parseWithTabs, postParse, preParse, scanString, searchString, setDebug, setDebugActions, setDefaultWhitespaceChars, setParseAction, setResultsName, setWhitespaceChars, skipIgnorables, streamline, suppress, transformString, tryParse, validate
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variable Summary
Inherited from ParserElement: DEFAULT_WHITE_CHARS

Instance Method Details

__init__(self, pattern, flags=0)
(Constructor)

The parameters pattern and flags are passed to the re.compile() function as-is. See the Python re module for an explanation of the acceptable patterns and flags.
Overrides:
pyparsing.Token.__init__

Generated by Epydoc 2.1 on Sun Feb 05 12:07:46 2006 http://epydoc.sf.net