You are not logged in.
Re-Hi
Is possible remove all but one word in a file? For example, if the file is named:
Jovanotti - Il quinto mondo - front1.jpg
is possible delete all except "front" to have this result
front.jpg
thanks
Offline
You can use a single Insert rule to replace the entire file name with "front":
Insert: Insert "front" replacing current name (skip extension)
Offline
but I wish it was Renamer to notice if, among other files, it is one with no name inside "front" and that the rename...
Offline
but I wish it was Renamer to notice if, among other files, it is one with no name inside "front" and that the rename...
I don't fully understand you, but if you only need to change files which actually do contain "front" word, then you could use a RegEx rule:
Replace expression ".*\b(front)[\b\d].*" with "$1" (skip extension)
Input:
Jovanotti - Il quinto mondo - front1.jpg
Jovanotti - Il quinto mondo.jpg
Output:
front.jpg
Jovanotti - Il quinto mondo.jpg
If that is not what you want, then provide several complete examples which demonstrate what you want.
Offline
it is exactly what I want
Now I will try to figure out how to follow your help
I have proglem with the RegEx rule. In "Expression" I have write:
Replace expression ".*\b(front)[\b\d].*" with "$1" (jpg extension)
I have change (skip extension) becouse I want that it change only jpg extension files, is correct?
And in Replace what I must write?
Last edited by Lauraq (2016-10-06 19:42)
Offline
You are not entering the rule configuration correctly.
Here is a demonstration of how it should be entered:
Offline
perfect, thanks
ops probelm
...it work with
Jovanotti - Il quinto mondo - front1.jpg
but not for, an example, with
[Cd Cover] Frankie Hi-NRG Mc - Verba Manent - front.jpg
I m looking for a rule that work with all the pics that have the word "front" on it
Last edited by Lauraq (2016-10-07 00:11)
Offline
...it work with
Jovanotti - Il quinto mondo - front1.jpg
but not for, an example, with
[Cd Cover] Frankie Hi-NRG Mc - Verba Manent - front.jpg
Change the expression to:
\A.*\b(front)(\b|[\d]+)\Z
Offline
thanks but now work with
[Cd Cover] Frankie Hi-NRG Mc - Verba Manent - front.jpg
and not with
digipack_front.jpg
Offline
now work with
[Cd Cover] Frankie Hi-NRG Mc - Verba Manent - front.jpg
and not with
digipack_front.jpg
That is because the rule excepts the "front" to be separated by a word boundary, while "_" character is considered to be part of a word.
A slightly adjusted expression should make it work:
\A.*(\b|_)(front)(\b|[\d]+)\Z
And change the replacement to:
$2
You can study how to use Regular Expressions here:
http://www.den4b.com/wiki/ReNamer:Regular_Expressions
Last edited by den4b (2016-10-07 20:03)
Offline