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.
--
http://mail.python.org/mailman/listinfo/python-list