Is it possible to search and replace a string using Notepad++ and keep the case (small or big caps) formatting?
For example, I have the following strings that are often used in several files:
UserLogin
USERLOGIN
userlogin
Now, I need to name everything "consumer" instead of "user". Like this:
ConsumerLogin
CONSUMERLOGIN
consumerlogin
Is there anyway of doing this change with only 1 search/replace in Notepad++? Or I have to do 3 different search/replace?
I think you have to do 3 search/replace, but you can create a macro to "group" them. Start a macro, do the 3 replaces then stop the macro. (Macro > Start/Stop Recording
). Click Macro > Save Currently Recorded Macro
and choose a Name and Shortcut for later uses.
I hope it helps!
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