Wrapper around regex pattern objects which memorizes the last match object and gives list access to it's capturing groups. See module re for regex docs.
Usage:
my_re = Re('^(\w[\w\+\-\.]+)\?(.*)')
if my_re.match(string):
print my_re[1], my_re[2]
| Method | __getitem__ |
Undocumented |
| Method | __init__ |
Constructor takes same arguments as re.compile() |
| Method | __len__ |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | __str__ |
Undocumented |
| Method | end |
No summary |
| Method | match |
Same as re.match() |
| Method | search |
Same as re.search() |
| Method | start |
No summary |
| Method | sublist |
No summary |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | m |
Undocumented |
| Instance Variable | p |
Undocumented |
| Instance Variable | r |
Undocumented |