re.sub unexpected behaviour

Javier Collado javier.collado at gmail.com
Tue Jul 6 13:58:58 EDT 2010


Thanks for your answers. They helped me to realize that I was
mistakenly using match.string (the whole string) when I should be
using math.group(0) (the whole match).

Best regards,
    Javier



More information about the Python-list mailing list