#1 2013-04-08 16:08

bocaseca
Member
Registered: 2013-02-25
Posts: 5

Rearrange and add ")"

I was trying to learn RegEx and PascalScript but it's hard for me, i hope to learn more studying these two ones solutions if you give me.

rearrange:   from          abc-def
                        to          def-abc

and add  )  at the end only if  (  already exists

                   from          abc (def
                       to          abc (def)

Offline

#2 2013-04-08 18:45

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

Re: Rearrange and add ")"

bocaseca wrote:

rearrange:   from          abc-def
                        to          def-abc

Take a look at our wiki >> http://www.den4b.com/wiki/ReNamer:Rules … #Example_1


and add  )  at the end only if  (  already exists

                   from          abc (def
                       to          abc (def)

I think you can use the same rearrange rule but with '('.
And replace with $1 ($2)
If there is no '(' found that file will not be involved anyway I guess? Maybe you have to check 'Exact Pattern', IIRC?

Try it out by utilizing Shift+A  for 'Analyze' dialog.


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 2013-04-08 21:56

bocaseca
Member
Registered: 2013-02-25
Posts: 5

Re: Rearrange and add ")"

Thanks so much, problem solved at 100%

Offline

Board footer

Powered by FluxBB