idiom for RE matching
Gordon Airporte
JHoover at fbi.gov
Tue Jul 24 23:02:51 EDT 2007
Gabriel Genellina wrote:
> As is often the case, a regular expression is NOT the right tool to use
> in this case.
>
> --Gabriel Genellina
Very interesting, thank you. I think 'pattern matching' and I
automatically think 'regular expressions'.
I did already find that it speeds things up to pre-test a line like
if 'bets' or 'calls' or 'raises' in line:
run the appropriate re's
which isn't very pretty at all, and it seems I didn't manage to take the
next steps to doing aways with the re's altogether.
More information about the Python-list
mailing list