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

# Class compiledREtype

    object --+
             |
            pyparsing.Regex.compiledREtype

Compiled regular expression objects

Instance Methods
__copy__(...) |
__deepcopy__(...) |
findall(...) findall(string[, pos[, endpos]]) --> list. |
finditer(...) finditer(string[, pos[, endpos]]) --> iterator. |
match(...) match(string[, pos[, endpos]]) --> match object or None. |
scanner(...) |
search(...) search(string[, pos[, endpos]]) --> match object or None. |
split(...) split(string[, maxsplit = 0]) --> list. |
sub(...) sub(repl, string[, count = 0]) --> newstring Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl. |
subn(repl, string, count=... = 0) --> (newstring, number of subs) Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl. |
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
| flags
| groupindex
| groups
| pattern
Inherited from `object`: `__class__`

Method Details

### findall(...) |
findall(string[, pos[, endpos]]) --> list. Return a list of all non-overlapping matches of pattern in string.

### finditer(...) |
finditer(string[, pos[, endpos]]) --> iterator. Return an iterator over all non-overlapping matches for the RE pattern in string. For each match, the iterator returns a match object.

### match(...) |
match(string[, pos[, endpos]]) --> match object or None. Matches zero or more characters at the beginning of the string

### search(...) |
search(string[, pos[, endpos]]) --> match object or None. Scan through string looking for a match, and return a corresponding match object instance. Return None if no position in the string matches.

### split(...) |
split(string[, maxsplit = 0]) --> list. Split string by the occurrences of pattern.