Python vs. Perl, which is better to learn?
Fredrik Lundh
fredrik at pythonware.com
Wed May 1 11:02:18 EDT 2002
> or you can use group references in the sub method:
>
> print pat.sub(r"\1\2\3", s)
which should have been:
print pat.sub(r"\3\2\1", s)
</F>
More information about the Python-list
mailing list