Hi Everybody,
I'm having some problems with get an if block to work.
import re
regex=re.compile('(some expression)')
# What I'm trying to get to work
if (m=regex.search('some long string')):
print m.groups()
- The thing that isn't working is the m=regex .... in the if line. Is this
possible in python?
Thanks,
Tino
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
