In the Find/Replace dialog, what is the difference between the options "case-sensitive" and "preserve case"?
The Case sensitive option determines what will be matched. The Preserve case option determines if the matched text's case is preserved or not when replacing it with the replacement string.
Here's an example which should make this clear. Imagine you have this:
word
Word
If Case sensitive is not selected and you look for word
, text from both lines will be selected. If it is selected, only the first, lowercase word
will be matched.
Let's say we're using tapioca
as the replacement string. If Preserve case is not selected (and Case sensitive isn't either), a Replace All would give you the following result:
tapioca
tapioca
With Preserve case enabled, it would instead become:
tapioca
Tapioca
i.e., the second Word
's case would be preserved and "applied" to the replacement string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With