How To Invert Name followed by Number

Bulk Rename Utility How-To's

How To Invert Name followed by Number

Postby mbenton » Thu May 14, 2020 5:16 pm

I have several folders with files named in the following format:

Doe, John 00024008.jpg

How do I rename the file using the Bulk Rename Utility to this new format as follows:

00024008 Doe, John.jpg

I simply want to invert the number and name as above.
mbenton
 
Posts: 1
Joined: Thu May 14, 2020 5:08 pm

Re: How To Invert Name followed by Number

Postby therube » Thu May 14, 2020 8:02 pm

If it's always of the type:

(whatever)(space)(number)

then:

1:RegEx
Code: Select all
Match:  ^(.*)\s(\d+)$
Replace:  \2 \1

Match anything, up to the last space, & match a number(s).
Then rearrange.
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To