Hi Everybody,<br><br> I'm having some problems with get an if block to work.<br><br>import re<br><br>regex=re.compile('(some expression)')<br><br># What I'm trying to get to work<br>if (m=regex.search('some long string')):
<br> print m.groups()<br><br>- The thing that isn't working is the m=regex .... in the if line. Is this<br>possible in python?<br><br>Thanks,<br>Tino<br><br>