[Tutor] Re: problems with re module
Lee Harr
missive at hotmail.com
Sun Nov 16 09:44:47 EST 2003
def f(matchobj):
#print matchobj.group(0), matchobj.group(1), matchobj.group(2)
return '<graphic srccredit="Fix Me!" fileref="%s" />' %
matchobj.group(2)
f = INFILE.readlines() #inefficient! changing this in the future would be a
good idea...
You are using the same variable name twice.
This is probably the root cause of the problem.
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
More information about the Tutor
mailing list