#1 : 24/01-21 04:03 jchong
Posts: 7
|
I have some files in this format:
AAA BBB CCC LAST.txt AAA BBB CCC DDD LAST.txt AAA BBB CCC DDD EEE LAST.txt They have different lengths but the common thing is I want to move LAST to the front: AAA BBB CCC LAST.txt --> LAST AAA BBB CCC.txt AAA BBB CCC DDD LAST.txt --> LAST AAA BBB CCC DDD.txt AAA BBB CCC DDD EEE LAST.txt --> LAST AAA BBB CCC DDD EEE.txt Appreciate your guidance how to do this. Thanks. |
#2 : 24/01-21 09:24 David Lee
Posts: 1125
|
Replace: (.*) (.*)
with: \2 \1 Use regular expressions |
#3 : 25/01-21 11:48 jchong
Posts: 7
|
Reply to #2:
Thanks David! |