Complicated File Renaming in Lightroom

  • 3
  • Question
  • Updated 5 years ago
I have a catalog containing a few thousand images. I have to rename those images but I can’t find a way to do it in Lightroom because the filenames contain text and sequence numbers as in the examples below:


I want to change those filenames to:


I can easily do that automatically in another program like “A Better Finder Rename” or even in Bridge. But when I come back to Lightroom, all my photos are of course missing and, since the filenames have changed, Lightroom will not locate “nearby” photos automatically. So I would have to relink every single photo manually, which would be painful!

Anybody have a solution for this?
Photo of Jean Claude Blanchard

Jean Claude Blanchard

  • 7 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 3
Photo of john beardsworth

john beardsworth

  • 924 Posts
  • 170 Reply Likes
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 370 Reply Likes

Yes - I think renaming must be done in Lightroom (in order to maintain same image standing).

If you can figure out what to use for the search & replace terms using jb's plugin, then it'll work. Otherwise, consider


Using the default preset, enter

Search For '%a*_(%a*)_(%d*-%d*)'
Replace With '%2_%1'

(without the apostrophes), and check the 'Lua Regex' box.

That assumes no spaces in first-name & last-name. Let me know if you want the "with spaces" version.