#1 2007-08-10 16:26

adirving
Member
Registered: 2006-09-20
Posts: 3

Renamer: move word three of filename to make it the first word instead

For example I have a file named: adirving example 1234 07-07-07

and I want the new file name to be: 1234 adirving example 07-07-07

Is there a way to do this?

Thanks

Offline

#2 2007-08-10 16:53

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Renamer: move word three of filename to make it the first word instead

For the example above, use 1 of the listed below RegEx rules.

1) Find first sequence of digits, and move it to the front of the name:

Expression: ([^\d]*) (\d+) (.*)
Replace: $2 $1 $3
Skip Extension: Yes

2) Make 4 words out of the name, separated with spaces, then move 3-rd word to the front:

Expression: (\S*)\s+(\S*)\s+(\S*)\s+(\S*)
Replace: $3 $1 $2 $4
Skip Extension: Yes

Offline

Board footer

Powered by FluxBB