here is my problem.
I have thousands lines like followed to convert.
Can I solve it with regular expression?
Original:
beSendToTheSpecialCustomer = new BooleanElement("SendToTheSpecialCustomer",false);
to:
beSendToTheSpecialCustomer = new BooleanElement("Send To The Special Customer",false);
Thanks for any suggestion.
Edited:
I just found a not-perfect solution to this in np++
find:
(\".*)([a-z])([A-Z])(.*\")
replace with:
\1\2 \3\4
then click “replace all”, but that just replace one word in every line each time, so I need click several times to replace all words, but I can finish my job in 1 minute.
Better solution from Placido
find:
([a-z])([A-Z])(?=[^()]+,(?:false|true)\);)
replace with:
\1 \2
I’m afraid you can’t do it with Np++ only. But this can be easily done with callback using almost any programming language. For example with PHP:
Edit:
Here is a non-perfect solution using regular expressions in Notepad++:
Find
Replace with