#1 2007-03-22 13:48

Newt
Member
Registered: 2007-03-22
Posts: 2

Swap Parts Of The File names

Hiya,

Is there a way that I can swap parts of a file name? Maybe by using a delimiter? For example if I have file names like this

King, Stephen
Cook, Robin
Rami, Sam

I want to be able to switch them to this

Stephen King
Robin Cook
Sam Rami

The PascalScript Move Filename Portion doesn't really help because the file names have different lengths.

If there is no way to do this presently I would like to request it be added in the next release.

Thanks for the great program.

Offline

#2 2007-03-22 21:05

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

Re: Swap Parts Of The File names

Yes, there is an easy way to swap parts like that, read one of these topics:
Move pattern to start (prefix), Swapping words within a file name.

You need to use Regular Expressions, and here are the parameters:
Expression: (.*), (.*)
Replace: $2 $1
Skip Extension: Yes

Offline

Board footer

Powered by FluxBB