in reply to Re: case insensitive replace, but maintains capitalization
in thread case insensitive replace, but maintains capitalization

Bingo!! This is exactly what I wanted!!
  • Comment on Re^2: case insensitive replace, but maintains capitalization

Replies are listed 'Best First'.
Re^3: case insensitive replace, but maintains capitalization
by samarzone (Pilgrim) on Dec 24, 2010 at 07:22 UTC

    This script beautifully handles the first letter of the word. You'll still have to define the (complex) rules for this in case you need more than just first letter. For example if you want "animal" to be replaced by "pet" then what should "ANiMal" be replaced with?

    -- Regards - Samar