I'm trying to solve this problem with textwrangler but haven't figured the solution yet.
Any help will be much appreciated.
Suppose I have many emails like this one:
Goodbye
Welcome to the jungle and so on...with much more text...
Hello
How would I go to swap "Goodbye" and "Hello" without changing the entire text in between? Notice that the text between can change from email to email.
My guess is:
Search for:
(Goodbye)(?s).*?(Hello)
Replace with:
\2 \1
But it doesn't work.
I've also tried
Search for:
(Goodbye)|(Hello)
Replace with:
\2 \1
It doesn't work either