by DefAnt » Thu Dec 30, 2010 4:37 pm
Try using this in RegEx box.
Match:
(\d*)(- )(\d*)
Replace:
\3\2\1
(\d*) copies all digits until the next character that isn't a letter and assigns it to it's respective grouping, 1 and 3.
(- ) takes the dash and space and puts it into Grouping 2.
The 3rd group of digits moves to 1st position, followed by 2nd grouping with the dash and space, followed by the 1st group of digits moved to the 3rd position.
However, upon rereading your post you say "words" not "digits" so you'd use (.*) instead of (\d*)
The thread Jane points you to also will help you out in this task. It helped me remember that .* which is what I was about to look for haha.
Good luck and nice job finding the thread and help section Jane.