1

Does Sublime Text 3 or Notepad++ (two applications I commonly use) have the ability to find all instances regardless of case sensitivity but preserve the case when replacing?

For example:

  • Find "stackexchanga" and replace with "stackexchange"
  • This should find all instances but replace:
    • "Stackexchanga" with "Stackexchange"
    • "StackExchanga" with "StackExchange"

Or would that require some sort of regex?

1

2 Answers 2

0

Could you not just do two finds, first for the lower case version, and then for the upper case version?

I realise this might not work if you've got text with really WeiRd CasINg to the text.

0

ST3 does this. Run Find -> Replace..., using the following values and options:

Find What: stackexchanga
Replace With: stackexchange
Options: Wrap (or not) and Preserve Case.

Hitting the Replace All button turned the following text:

Stackexchanga
StackExchanga

into:

Stackexchange
StackExchange

This is with the Mac version, build 3126.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .