I have file names with this pattern:
FIRSTNAME MIDLENAME LASTNAME1 LASTNAME2 ECOGRAFÍA WORD1 WORD2 WORD3…..pdf
Before the word ECOGRAFÍA I can have from 2 to 4 words and after several words.
What I need to do is rearrange the name and put ECOGRAFÍA and all the words after that at the beginning of the filename and the names after:
Ex.
ECOGRAFÍA WORD1 WORD2 WORD3 NAME1 NAME2 LASTNAME1 LASTNAME2.pdf.
I found an exempel here:
Match:
([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*)
Replace
\4 \5 \6 \1 \2 \3
It works but in that case I need to organize files and modify the syntax for each group.
I suppose it has to be a better way to do that?
Thanks in advance!
MJ