B
Big Rick
Hello Folks
I have a document with many thousands of lines. All lines are 12 or so words
each with a "-" somewhere in the middle. I want to be able to swap the words
around to the other side of the "-". The lenght and the amount of the words
can vary.
e.g. if I have:-
apple banana - pear orange plum
wood metal glass - plastic
I want the result to be:-
pear orange plum - apple banana
plastic - wood metal glass
This must work on selected text only as only 3/4 of the document needs
changing, not the whole lot.
Mr Graham Mayor gave me following but it is not quite working. It is only
swapping around the words either side of the " - "
A wildcard replace of
(<[a-zA-Z]@>)( - )(<[a-zA-Z]@>)
with
\3\2\1
on the selected text should work.
So please can Graham or someone else help me out a bit further.
Your help is and always has been very much appreciated.
Thanking you in anticipation.
I have a document with many thousands of lines. All lines are 12 or so words
each with a "-" somewhere in the middle. I want to be able to swap the words
around to the other side of the "-". The lenght and the amount of the words
can vary.
e.g. if I have:-
apple banana - pear orange plum
wood metal glass - plastic
I want the result to be:-
pear orange plum - apple banana
plastic - wood metal glass
This must work on selected text only as only 3/4 of the document needs
changing, not the whole lot.
Mr Graham Mayor gave me following but it is not quite working. It is only
swapping around the words either side of the " - "
A wildcard replace of
(<[a-zA-Z]@>)( - )(<[a-zA-Z]@>)
with
\3\2\1
on the selected text should work.
So please can Graham or someone else help me out a bit further.
Your help is and always has been very much appreciated.
Thanking you in anticipation.