Remove portion of filename

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

Remove portion of filename

Postby stormtigers » Mon Jun 02, 2025 12:04 am

Hi Folks

Very very new to the program and confused as all heck.
I did find some solutions offered but its regex command and they lost me after the first sentence !

Basically I have around 3,800 files that were previously manually named when the file was created using the format

SURNAME First Name CUSTOMERNO.xxx

To maintain a system wide standard we have adopted a much simpler filekey which is

SURNAME-CUSTOMERNO.xxx

All 3 parts of the old key are variable in length as you can imagine.

Could some kind soul assist with what I need to do to rename all the files (other than do it manually :roll: ) please ?

Cheers for help in advance

Ray
stormtigers
 
Posts: 2
Joined: Sun Jun 01, 2025 11:58 pm

Re: Remove portion of filename

Postby stormtigers » Mon Jun 02, 2025 12:29 am

PROBLEM SOLVED !

Thanks for taking time to read if you did, and I am posting the solution in case others are struggling for something similar

Problem is :

SURNAME First Name CUSTOMERNO.xxx
To maintain a system wide standard we have adopted a much simpler filekey which is
SURNAME-CUSTOMERNO.xxx

TO ACHIEVE THE SOLUTION Select SIMPLE under RegEx
and appropriate in my circumstance

MATCH => %1-%2-%3

REPLACE => %1-%3

Very easy when someone shows the simpler terminology that "numpties" like me need to see !!

Cheers for your time
stormtigers
 
Posts: 2
Joined: Sun Jun 01, 2025 11:58 pm

Re: Remove portion of filename

Postby Admin » Tue Jun 03, 2025 6:08 am

Hi, glad to hear that the problem is solved.
You can also use the assistant tool to check various options with Regex / Javascript:

https://www.bulkrenameutility.co.uk/js/ ... gex&simple
Admin
Site Admin
 
Posts: 2923
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support