Page 1 of 1

flipping names around

PostPosted: Tue Mar 08, 2022 11:51 am
by pro-f-sor
Hi,
I want to bulk change folder names around. These were created as FirstName LastName and in some instances with a middle initial. For the middle initial I can worked out how to do as the simple %1 %2 %3, but this only works when an initial is in the name, but in cases where there is no middle initial, it fails. I am not sure how to do this correctly. I am sure it is a simple solution.

So for an example, we have the following:
Jack Sparrow
Jill A Smith

and want to achieve:
Sparrow Jack
Smith A Jill

Thank you in advance for your assistance :)
How do I do this, please

Re: flipping names around

PostPosted: Wed Mar 09, 2022 12:37 am
by Admin
Hi, is it always bring the last word to the front of the name?

Re: flipping names around

PostPosted: Wed Mar 09, 2022 12:08 pm
by pro-f-sor
yes

Re: flipping names around

PostPosted: Wed Mar 09, 2022 11:52 pm
by Admin
Try this

RegEx (1)

Enable v2 option

Match: (.*?) (\w+)$
Replace: \2 \1