Skip to main content
Known Participant
September 6, 2022
Question

Batch renaming of filenames using string substitution in Lightroom Classic

  • September 6, 2022
  • 1 reply
  • 656 views

I have my images named with the first two numerals for the year taken and then the sequence#.

For example:   _06_12345.cr3

I want to eliminate the first underscore on all the image filenames taken in 2006 in LR Classic:

    _06_12345.cr3     would become   06_12345.cr3

I want to search with a wildcard to locate all the _06_*.* images and then eliminate the underscore and leave the remaining filename intact.

 

Is this possible?

This topic has been closed for replies.

1 reply

johnrellis
Legend
September 6, 2022

[This post contains formatting and embedded images that don't appear in email. View the post in your Web browser.]

 

1. In the Library Filter bar, filter for all file names starting with _06_:

 

2. Then use the Search Replace Transfer plugin to replace _06_ in those file names with the empty string, using the method described here.

 

(Step 1 is needed to avoid accidentally renaming file names that contain _06_ somewhere other than the beginning.)

 

 

Known Participant
September 6, 2022

The good news in my case is that the filenames will NEVER have the occurrence of _06_ anywhere else in the filename.   That string will only appear as the first four characters of the filename.

johnrellis
Legend
September 6, 2022

Good, so you don't need step 1.