Page 1 of 1

replace/erase parts of a filename

PostPosted: Tue Aug 28, 2018 4:03 pm
by jasiha
Hi,
Writing from Belgium.
I have a lot of picture files that I will rename in some way.
E.G.: Simons,Jaak,London,18091948,Brussels,28082018.jpg
Now I want to erase the words London and Brussels from this filename.
The words can vary also in length.
The result should be: Simons,Jaak,18091948,28082018.jpg
Can this be done by using BRU? I'm not that computer specialist :-(
Many many thanks.
Jaak Simons

Re: replace/erase parts of a filename

PostPosted: Tue Aug 28, 2018 4:17 pm
by therube
Are there always 6 "words" in the name, separated by commas?

Re: replace/erase parts of a filename

PostPosted: Wed Aug 29, 2018 2:15 pm
by jasiha
therube wrote:Are there always 6 "words" in the name, separated by commas?

Yes.
All are scans of in memoriam cards.
Name,Surname,birth place,birth date,death place and death date + .jpg
All separated by comma.
For a new file file birth place + , and death place + , should be removed.
The two places can be of a different length.

Re: replace/erase parts of a filename

PostPosted: Wed Aug 29, 2018 4:07 pm
by therube
1:RegEx
Code: Select all
Match:  (.*?),(.*?),(.*?),(.*?),(.*?),(.*)
Replace:  \1,\2,\4,\6

Re: replace/erase parts of a filename

PostPosted: Thu Oct 04, 2018 6:32 pm
by jasiha
Thanks a lot! Just what I needed.