Tino Dai wrote:
> 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
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