Skip to main content
akillerbluesky
Participant
October 10, 2024
Question

Batch Rename Expression help

  • October 10, 2024
  • 2 replies
  • 148 views

i an trying to do a batch rename.

i am trying to get the 4 digit number after the 6 digit number.

With my curent expression it puts the 4#s after the NEF.

i have tried to create a new sequence number after $3 and it still goes behind the .nef

Anyone have a work around?

Here is a screen shot if that helps.

This topic has been closed for replies.

2 replies

Stephen Marsh
Community Expert
Community Expert
October 11, 2024

To put the 4 digits after the 6 digits with the rest of the name the same:

 

Find:

(.+_)(\d{4})_(\d{6})(\.[^\.]+$)

Replace:

$1$3_$2$4

 

Or if you only want the 6 digits, underscore, 4 digits:

 

Find:

(.+_)(\d{4})_(\d{6})(\.[^\.]+$)

Replace:

$3_$2$4

 

There are other valid find expressions, such as:

 

(.+_)(.+)_(.+)(\.[^\.]+$)

(.+)(_)(.+)(_)(.+)(_)(.+)(\.[^\.]+$)

 

Stephen Marsh
Community Expert
Community Expert
October 11, 2024

@akillerbluesky 


Please type out the before and after names so that your request is crystal clear.