hi
>>> licenseRe = re.compile(r'\(([A-Z]+)\)\s*(No.\d+)?')
>>> for license in licenses:
m = licenseRe.search(license)
print m.group(1, 3)
Traceback (most recent call last):
File "<pyshell#17>", line 3, in <module>
print m.group(1, 3)
IndexError: no such group
Something wrong with this code.
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
