Home | Trees | Indices | Help |
|
---|
|
Regular expression pattern.
|
|||
|
|||
|
|||
tuple( int, int ) |
|
||
tuple( int, int, str ) |
|
||
|
|||
Inherited from |
|
|||
int |
flags Regular expression flags. |
||
int |
maxLength Maximum expected length of the strings matched by this regular expression. |
||
str |
pattern Regular expression in text form. |
||
re.compile |
regexp Regular expression in compiled form. |
|
|||
Inherited from |
|
Class constructor. The only mandatory argument should be the pattern string. This method MUST be reimplemented by subclasses of Pattern.
|
Returns the maximum expected length of the strings matched by this
pattern. This value is taken from the Ideally it should be an exact value, but in some cases it's not possible to calculate so an upper limit should be returned instead. If that's not possible either an exception must be raised. This value will be used to calculate the required buffer size when doing buffered searches.
|
Searches for the pattern in the given buffer, optionally starting at the given position within the buffer. This method MUST be reimplemented by subclasses of Pattern.
|
|
maxLengthMaximum expected length of the strings matched by this regular expression.This value will be used to calculate the required buffer size when doing buffered searches. Ideally it should be an exact value, but in some cases it's not possible to calculate so an upper limit should be given instead. If that's not possible either,
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Dec 20 17:54:54 2013 | http://epydoc.sourceforge.net |