ActiveState Community

Any chance to do a super smart replace?

Posted by adamg on 2009-09-21 08:34
OS: All / Any

I run into the situation all the time that I have to replace text that's written in different cases.
E.g. GreaseMonkey, greaseMonkey, greasemonkey, GREASEMONKEY

I would suggest that the find/replace should be that clever that if I input

find: greasemonkey
replace: WindowWasher

it will replace:
GreaseMonkey -> WindowWasher
greaseMonkey -> windowWasher
greasemonkey -> windowwasher
GREASEMONKEY -> WINDOWWASHER

Simple, isn't it? Would save doing replace 2-3 times for the different cases.

toddw | Mon, 2009-09-21 10:51

There is an existing (and very old) enhancement request to add this feature to Komodo:
http://bugs.activestate.com/show_bug.cgi?id=7161

Cheers,
Todd

adamg | Tue, 2009-09-22 00:39

According to http://bugs.activestate.com/show_bug.cgi?id=82270 it's solved, but does not seem to work (5.2.0 IDE).

Should I file something or what's the procedure?

toddw | Tue, 2009-09-22 14:46

Bug 82270 is marked as a duplicate of bug 7161 (which means it's not yet fixed, as bug 7161 is still unfixed).