You are not logged in.
Pages: 1
I learned another regex as the one Renamer uses.
I often have troubles to find out what is wrong when I insert regex code in Renamer.
It would be nice if there is regex/code checker in Renamer.
(and evt. a drop down list of all regex codex variables in Renamer)
p.e.
I'm trying now for almost an hour to change these files:
input:
firstword_secondword_01.txt
firstword_secondword_02.txt
firstword_secondword_03.txt
firstword_secondword_04.txt
etc
to
output:
secondword_firstword_01.txt
secondword_firstword_02.txt
secondword_firstword_03.txt
secondword_firstword_04.txt
etc
I added this in rearrange:
(.*)_(.*)_(.*)
New pattern:
$2_$1_$3
but nothing happens.
Btw.... what did I wrong?
Offline
Hi Remon.
I learned another regex as the one Renamer uses.
I often have troubles to find out what is wrong when I insert regex code in Renamer.
It would be nice if there is regex/code checker in Renamer.
(and evt. a drop down list of all regex codex variables in Renamer)
Maybe our wiki can help you a bit:
http://www.den4b.com/wiki/ReNamer:Regular_Expressions
p.e.
I'm trying now for almost an hour to change these files:input:
firstword_secondword_01.txtoutput:
secondword_firstword_01.txtI added this in rearrange:
(.*)_(.*)_(.*)New pattern:
$2_$1_$3but nothing happens.
Btw.... what did I wrong?
Your expression work for the examples you have provided.
1) RegEx: Replace expression "(.+)_(.+)_(.+)" with "$2_$1_$3" (skip extension)
Perhaps your examples differs from your real file names ?
Ah, now i see you want to use the Rearrange Rule?
You would not use RegularExpression in Rearrange Rule.
(The "$1"-term is more like a var in Perl, not like a group-reference in RegEx)
Just enter the delimiter to split the string (here the underscore "_")
which will split your string into three parts ("firstword" and "secondword" and "01")
and this are stored in variables which you can excess by $1, $2 and $3.
Then just rearrange this vars in your output and add the delimiter again (if wanted):
1) Rearrange: Split by delimiters "_", New pattern "$2_$1_$3" (skip extension)
See our wiki
http://www.den4b.com/wiki/ReNamer:Rules:Rearrange
http://www.den4b.com/wiki/ReNamer:Rules … e_Examples
.
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
Thank you Stefan.
So simple..
It would be nice if I could also use the group reference in Renamer.
I can group pieces of the name different as only by separator.
You see, for me Renamer is not easy to use because of my previous experiences in other software (p.e. the group-reference).
I find myself often read the Renamer manual
Believe me that I once did a search to find out how to add a counter in Renamer.
I searched on the net but found nothing other then a userscript in pascal.
Why was it so complicated to find out how to add a counter?
Then I noted that you call it "Serialize"
Have a nice day
Remon
Offline
Hi Remon,
The wiki too has a local search field.
If you search for "counter", the "serialize rule" page comes up right at the top in the search results.
Offline
Use Expresso to check your code and it is free
Offline
Use Expresso to check your code and it is free
It may be using a different flavor of RegEx, in which case the results would be misleading.
Instead, first enter your RegEx rule in ReNamer as usual and then press SHFT+A.
ReNamer launches Analyze Text window, where you can enter any arbitrary text, and check out the effect of your RegEx rule.
In fact, this approach has an additional advantage: It shows the cumulative effect of all selected rules (not just RegEx).
See wiki for details: http://www.den4b.com/wiki/ReNamer:Analyze
Last edited by narayan (2012-09-06 03:21)
Offline
Pages: 1