Switching items in a file name

A swapping-ground for Regular Expression syntax

Switching items in a file name

Postby Eridu » Sat Nov 19, 2011 12:32 am

I checked the existing posts but could not figure this out.

I have files in this format: A confederacy of dunces - John Kennedy Toole.mobi
I want files in this format: John Kennedy Toole - A confederacy of dunces.mobi

In each case the items are separated by a space dash space.

Thanks in advance.
Eridu
 
Posts: 2
Joined: Sat Nov 19, 2011 12:21 am

Re: Switching items in a file name

Postby bitmonger » Sat Nov 19, 2011 6:23 am

An example that answers that exactly except for an underscore instead of a hyphen is shown in this forum

http://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=3&t=340&p=2516&hilit=switch#p2209

by Gabriel in the 10th post down.
bitmonger
 
Posts: 50
Joined: Sat Sep 22, 2007 5:05 am

Re: Switching items in a file name

Postby Eridu » Sat Nov 19, 2011 10:39 pm

Thank you bitmonger, that worked. Not sure how I missed it, I did read that thread.
Eridu
 
Posts: 2
Joined: Sat Nov 19, 2011 12:21 am


Return to Regular Expressions