Author Topic: find and replace caption string with various non sequential numbers within  (Read 40 times)

Offline jmar6482

  • Newcomer
  • *
  • Posts: 4
    • View Profile
I have hundreds of images that have this type of text that I want to remove ifrom each caption area of each image. examples: file reference # 16573_054cpc, file reference # 16553_012cpc, file reference # 16330_138cpc. Is there a way to find and replace all data after file reference with blank? All of these are at the end of the caption with nothing after it.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25425
    • View Profile
    • Camera Bits, Inc.
I have hundreds of images that have this type of text that I want to remove ifrom each caption area of each image. examples: file reference # 16573_054cpc, file reference # 16553_012cpc, file reference # 16330_138cpc. Is there a way to find and replace all data after file reference with blank? All of these are at the end of the caption with nothing after it.

If I understand you correctly, you have filenames that look like this:
file reference # 16573_054cpc.ext
file reference # 16553_012cpc.ext
file reference # 16330_138cpc.ext

...where 'ext' is something like JPG or NEF, etc.

And you want the result to be:
file reference # 16573.ext
file reference # 16553.ext
file reference # 16330.ext

Is that correct?  Or some other result?

-Kirk