GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Is there a rename preset to rename a filename to the first X words?


#1

Is there a rename preset to rename a filename to the first X words?


#2

This should do what you want:

Mode: RegEx
Ignore extension: checked

To the first word:

Old name: (.*?) (.*)
New name: \1

To the first two words:

Old name: (.*?) (.*?) (.*)
New name: \1 \2

To the first three words:

Old name: (.*?) (.*?) (.*?) (.*)
New name: \1 \2 \3

Adaptions might be needed, depending on how you define 'words' and what you want to recognize as separators.


#3

Thanks so much lxp :+1:

Now I can cut filenames down to 9 words long :smiley: