Quote:
Originally Posted by chaley
You have stumbled across a python'ism. Printing object instances requires class-level support. The class must include some special methods that return a string representation of an instance of the class. SR match objects don't, so you need to make do with its API. For example, you can print mg.groups(), which will give you a list of all the matched groups. mg.group(0) will give you the entire matched string.
|
Brilliant ! Thank you so much !
That will make this a lot easier in times to come ;-D