#1 2014-01-13 22:46

skates
Member
Registered: 2013-03-01
Posts: 12

Rearrange?

Hello, I'm a novice at RegX.  I have some pics to rename, e.g.

In the Summertime by Edward Dean Hopper

which I'd like to rename to

Hopper, Edward Dean - In the Summertime.   

Any help would be appreciated.

Last edited by skates (2014-01-13 22:59)


Happy ReNamer User  :)

Offline

#2 2014-01-14 08:06

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Rearrange?

Hi.

1) replace "by" with "-"
2a) match all before and all behind the dash but the last word behind the last space (.+) - (.+ )(\w+)
2b) replace by $3, $2- $1


Tip: there some of this tasks already done and can be found in the forum and the wiki.
Search for regex and rearrange rule.

Last edited by Stefan (2014-01-14 08:08)


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2014-01-14 17:04

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

Re: Rearrange?

I would just suggest modifying the first rule to replace " by " with " - " (with spaces on both sides).

So to skip instances where "by" is a part of another word, for example: "goodbye".

Offline

#4 2014-01-15 01:44

skates
Member
Registered: 2013-03-01
Posts: 12

Re: Rearrange?

Thank you much for the suggestions. I accomplished what I set out to do thanks to your help.


Happy ReNamer User  :)

Offline

Board footer

Powered by FluxBB