Need Help - How to Remove SomeRandomNumber on File Name

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

Need Help - How to Remove SomeRandomNumber on File Name

Postby seanmurphy » Mon Nov 15, 2021 7:43 pm

Hi,

I’m having trouble removing the SomeRandomNumber (see example below) from the file name using the Bulk Rename Utility. There are spaces between each part of the file name and I’d like to keep the .pdf file extension and remove the SomeRandomNumber and the space after the IDNumber, so the end result would be FirstName LastName IDNumber.pdf

Current Format:
FirstName LastName IDNumber SomeRandomNumber.pdf

File Name Example:
First Last 0123456 424287.pdf

Could someone assist me?

Thanks in advance!
seanmurphy
 
Posts: 2
Joined: Mon Nov 15, 2021 5:50 pm

Re: Remove SomeRandomNumber on File Name

Postby Luuk » Mon Nov 15, 2021 9:15 pm

First inside Filters(12) to put a "Mask" like *.pdf if only renaming pdf-files, then RegEx(1) with a "Match" and "Replace" like...
^([^ ]+ [^ ]+ \d+) \d+$
\1

First Last 0123456 424287.pdf =======> First Last 0123456.pdf
First Last 0123456 424abc.pdf =======> (not renamed, because letters at the end)
First Middle Last 0123456 789.pdf ====> (not renamed, because more than 2 names)
Luuk
 
Posts: 690
Joined: Fri Feb 21, 2020 10:58 pm

Re: Need Help - How to Remove SomeRandomNumber on File Name

Postby seanmurphy » Tue Nov 16, 2021 1:14 am

It's working! Thank you so much!
seanmurphy
 
Posts: 2
Joined: Mon Nov 15, 2021 5:50 pm


Return to BRU Support