Case insensitive replacement?

Tim Chase python.list at tim.thechases.com
Wed Sep 28 06:46:11 EDT 2016


On 2016-09-27 18:10, MRAB wrote:
> The disadvantage of your "string-hacking" is that you're assuming
> that the uppercase version of a string is the same length as the
> original:

Ah, good point.  I went with using the regexp version for now since I
needed to move forward with something, so I'm glad I opted reasonably.

Thanks,

-tkc






More information about the Python-list mailing list