I have this:
TEXT_CONNECTED "You're connected."
TEXT_DISCONNECTED "You're disconnected."
and many more.
TEXT_CONNECTED and TEXT_DISCONNECTED are also used elsewhere in the same file, like:
SendMessage(TEXT_CONNECTED);
SendMessage(TEXT_DISCONNECTED);
I want to replace TEXT_CONNECTED with the string from the same line “You’re connected.”,
also the other one TEXT_DISCONNECTED with “You’re disconnected.”
So it will look like:
"You're connected." "You're connected."
"You're disconnected." "You're disconnected."
and
SendMessage("You're connected.");
SendMessage("You're disconnected.");
I’m using Notepad++, maybe this can be done with regex?