Newbie seeks help on case preserving substitutions

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Mon Jun 25 15:14:05 EDT 2001


Mon, 25 Jun 2001 18:32:59 +0200, Nicola Musatti <objectway at divalsim.it> pisze:

> I have a number of files which contain different variations of the
> same string, e.g.
> 
> ECBASE
> ECBase
> ecbase
> 
> Which I want to substitute with a different string, while preserving
> the original case, e.g.
> 
> OWTEST
> OWTest
> owtest

What should it do if strings have different lengths? E.g. substitute
NIcoLA with properly cased Musatti - how to define the problem then?

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list