@Mou-Nir said in How can we reverse words in a row:
Thank you sir peter for the help, but I’ve faced a small issue which is as follow:
You said “word”. You should not be surprised that it didn’t work for multiple “words” on each side of the |.
Here’s another freebie – but it’s the last from me. The quality of replies is only as good as the quality of your question. If you don’t understand your data well enough to explain it correctly to us, there is no way we would be expected to guess it.
FIND = (?-s)^(.*?)\|(.*?)$Everything else from my previous solution remains the same.
This will swap everything on the left of the first | on a line with everything to the right of the first | on the line.
And, as Alan said, it is difficult to hit a moving target. I have re-aimed once already, and am not likely to do so again.
If you want to do more fancy search-and-replace in the future, your best bet is going to be to study the documentation I’ve already linked.