Page 1 of 1

Need Help - How to Remove SomeRandomNumber on File Name

PostPosted: Mon Nov 15, 2021 7:43 pm
by seanmurphy
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!

Re: Remove SomeRandomNumber on File Name

PostPosted: Mon Nov 15, 2021 9:15 pm
by Luuk
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)

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

PostPosted: Tue Nov 16, 2021 1:14 am
by seanmurphy
It's working! Thank you so much!