Ive got a PSD with multiple files that need to be exported all at the same size and quality for a presentation.

For this i have each image on its own layer and use File > Layers to Files I pre name the layers a descritive name and use the prefix section of the layers to files window to add in the project name.

So i end up with a filename like this : PROJECT NAME - _0001_LAYERNAME.jpg

Is there a way i can get it to not output the layer number eg. 0001

  • For anyone else looking into this ... easiest solution is to edit the script. It only takes a few minor changes.
    – inspirednz
    Jul 16, 2021 at 23:44

1 Answer 1


There's no way to do this in Photoshop as far as I can tell.

This is however possible in Adobe Bridge using Batch Rename

First, open Bridge and go to Tools Batch Rename and then from the preset dropdown select String Modification Then check the Use Regular Expression checkbox. Now you can add RegEx to find and replace the pieces you want.

Here's a screenshot, I've included the RegEx I used to get rid of the numbers as well, you may need to change/refine it. (Check out the Current/New Filename at the bottom of my screenshot). I've also unchecked Replace All you may or may not need that depending on how you want the RegEx to run.

enter image description here

I used Bridge CS5.1 for this, I assume it works similarly in higher versions of Bridge

I figure I'll also try to explain the RegEx (\_[0-9]*) a bit since it's all magic.

\ escapses the _ so regEx takes it literally. This eliminates the preceding underscore and also helps establish where RegEx should start replacing.

Next I wrote [0-9] this will look for any characters that are 0, 9 and any inbetween.

Lastly I added an * so that the [0-9] pattern would go indefinitely, until we hit a character that doesn't match the pattern (making sure we get all 4 digits)

Here's a helpful guide from the MDN

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.