#11 2016-10-08 07:35

Lauraq
Member
Registered: 2016-10-02
Posts: 78

Re: remove all except one word

don't work correctly becouse I must disable the "skip extension" becouse I want operate only with jpg file sad

thank you but it is difficult for you, for me it is impossible smile

Last edited by Lauraq (2016-10-08 07:45)

Offline

#12 2016-10-08 09:17

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

Re: remove all except one word

Lauraq wrote:

I must disable the "skip extension" becouse I want operate only with jpg file

You don't need to disable "skip extension" option.

You need to use Filter Settings to add only JPG files to ReNamer, i.e. with a filter "*.jpg".

ReNamer:Filter_settings#Filters_menu

Offline

#13 2016-10-08 10:22

Lauraq
Member
Registered: 2016-10-02
Posts: 78

Re: remove all except one word

I can't use it becouse I wish ReNamer analyze folders that contain egg white in the albums I have songs (mp3) and photos (Front and Rear calls).

thanks for the patience smile

Offline

#14 2016-10-08 10:57

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

Re: remove all except one word

I don't understand you... Please provide complete examples if you need further help.

Offline

#15 2016-10-08 13:13

Lauraq
Member
Registered: 2016-10-02
Posts: 78

Re: remove all except one word

sorry my english isn't good sad

I want scan and rename folders that containing, each, mp3's and a jpg file that have different names but contain the word "front".
I can't use your string becouse ReNamer also renames the mp3 files. For example, if in the folder I have 2 file

Jovanotti - Il quinto mondo - front1.mp3

and

titlealbum_artist-front.jpg

your program change both files in:

front.mp3

and

front.jpg

and I don't want change the name of the mp3 smile

Last edited by Lauraq (2016-10-08 13:17)

Offline

#16 2016-10-10 00:04

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

Re: remove all except one word

You need to configure Filter Settings with a filter "*.jpg" before your add your folders/files. Only files matching the specified filter will be added to ReNamer, so you will only be renaming JPG files.

Offline

#17 2016-10-10 11:26

Lauraq
Member
Registered: 2016-10-02
Posts: 78

Re: remove all except one word

Noooooo smile

the Filter Setting apply the rules to ALL the preset and in the preset I have rules for Mp3 and for Jpg ^_^

Offline

#18 2016-10-10 16:56

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

Re: remove all except one word

Option 1: Process JPG files separately from MP3 files, using separate rules.

Option 2: Modify RegEx pattern to only work on JPG files.

Expression: \A.*(\b|_)(front)([\d]*)\.jpg\Z
Replace: $2
Case sensitive: NO
Skip extension: NO

Offline

#19 2016-10-10 17:36

Lauraq
Member
Registered: 2016-10-02
Posts: 78

Re: remove all except one word

ok thanks

Offline

#20 2016-10-18 13:32

Lauraq
Member
Registered: 2016-10-02
Posts: 78

Re: remove all except one word

sorry another little problem. I have used your second option \A.*(\b|_)(front)([\d]*)\.jpg\Z
but that string don't work with pics that have the word "front" and after other words, for example:

Jovanotti - Il quinto mondo - front ciao.jpg

sad

Offline

Board footer

Powered by FluxBB