replace/erase parts of a filename

Post any Bulk Rename Utility support requirements here. Open to all registered users.

replace/erase parts of a filename

Postby jasiha » Tue Aug 28, 2018 4:03 pm

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
jasiha
 
Posts: 9
Joined: Tue Aug 28, 2018 2:59 pm

Re: replace/erase parts of a filename

Postby therube » Tue Aug 28, 2018 4:17 pm

Are there always 6 "words" in the name, separated by commas?
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: replace/erase parts of a filename

Postby jasiha » Wed Aug 29, 2018 2:15 pm

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.
jasiha
 
Posts: 9
Joined: Tue Aug 28, 2018 2:59 pm

Re: replace/erase parts of a filename

Postby therube » Wed Aug 29, 2018 4:07 pm

1:RegEx
Code: Select all
Match:  (.*?),(.*?),(.*?),(.*?),(.*?),(.*)
Replace:  \1,\2,\4,\6
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: replace/erase parts of a filename

Postby jasiha » Thu Oct 04, 2018 6:32 pm

Thanks a lot! Just what I needed.
jasiha
 
Posts: 9
Joined: Tue Aug 28, 2018 2:59 pm


Return to BRU Support