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