Delete all behind a character

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

Delete all behind a character

Postby cbau1234 » Mon Jan 23, 2017 10:34 pm

Hi all
This tool can probably do all, but seems to also quite complex.

I have a simple task I like to do.
I have hundreds of folder names all build about the same, but all with different text. The only general character is a - somewhere in the name.

like:
test1 - slslsllsl
builing - sksksk
mouse - sfdfdrfdfdfdffd

I like to remove all characters incl. the - from each word, incl. the space before the -
means the output would be:
test1
builing
mouse

Sure this goes somehow.

Thanks
Chris :?:
cbau1234
 
Posts: 2
Joined: Mon Jan 23, 2017 10:30 pm

Re: Delete all behind a character

Postby KenP » Mon Jan 23, 2017 10:43 pm

This will do what you want.

RegEx (1)
Match: ^(.*) -.*
Replace: \1
KenP
 
Posts: 196
Joined: Sat Jul 30, 2016 11:25 am

Re: Delete all behind a character

Postby cbau1234 » Tue Jan 24, 2017 8:24 pm

Great thanks for this. I will try now all my folders and they are many.
Great tool.
cbau1234
 
Posts: 2
Joined: Mon Jan 23, 2017 10:30 pm


Return to BRU Support