Author Topic: How to remove characters from beginning or end of a filename  (Read 5337 times)

Offline rcohn

  • Full Member
  • ***
  • Posts: 119
    • View Profile
I believe I did this some years ago, but I don't remember how I set the "Rename Photos" dialog box. I can't find the answer with a search, here or in the manual, so I'm hoping someone here will be able to help me. Find & Replace won't work in this instance.

Thanks!

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24756
    • View Profile
    • Camera Bits, Inc.
Re: How to remove characters from beginning or end of a filename
« Reply #1 on: July 14, 2019, 01:40:52 PM »
I believe I did this some years ago, but I don't remember how I set the "Rename Photos" dialog box. I can't find the answer with a search, here or in the manual, so I'm hoping someone here will be able to help me. Find & Replace won't work in this instance.

You'd use variable substring extraction.  You can read about it here:

http://wiki.camerabits.com/en/index.php?title=User_Manual_Flat_View#Variable_Substring_Extraction

If you'll give me some specific examples, I will be happy to supply solutions.

-Kirk

Offline rcohn

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: How to remove characters from beginning or end of a filename
« Reply #2 on: July 14, 2019, 01:52:38 PM »
Kirk, thanks so much for your quick reply! That jogged my memory. I just needed to remove the last character from a folder of images. "Variable substring extraction" was exactly what I needed, but I didn't know the right terms to search for.

{filenamebase:0,-1} did the trick.

Ric