Author Topic: Variable Substring Extraction {persons}  (Read 1303 times)

Offline Jaap van der Pijll

  • Newcomer
  • *
  • Posts: 23
    • View Profile
Variable Substring Extraction {persons}
« on: June 10, 2021, 11:36:54 PM »
I have a question

Example, form my code replacement:
s4      #4 Jolyn Beerepoot (SEW)
v17    #17 Elise Aerts (Geonius/V&L)

(is sports clubname)
when I enter in persons shown \v17\; returns #17 Elise Aerts (Geonius/V&L)
Is there a substring for variable {persons} that I can only add the name '#17 Elise Aerts' in keywords too.





Offline Mick O (Camera Bits)

  • Camera Bits Staff
  • Sr. Member
  • *****
  • Posts: 418
    • View Profile
    • Camera Bits
Re: Variable Substring Extraction {persons}
« Reply #1 on: June 15, 2021, 09:26:25 AM »
I don't think there is a way to do a variable substring extraction that will define the substrings dynamically.

If you make a third column in your Code Replacement file like so

s4      #4 Jolyn Beerepoot (SEW)         #4 Jolyn Beerepoot
v17    #17 Elise Aerts (Geonius/V&L)   #17 Elise Aerts

Then if you use the code replacement /v17#2/ it would return the shorter entry. You can add as many "alternate" code replacement columns as you need.

Another kludge that may help is using Find and Replace to remove " (Geonius/V&L)" from a whole series of images at once.

I hope this helps a little.

Mick
Mick O
Camera Bits

Offline Jaap van der Pijll

  • Newcomer
  • *
  • Posts: 23
    • View Profile
Re: Variable Substring Extraction {persons}
« Reply #2 on: June 16, 2021, 11:53:02 PM »
Mick
Mick, thanks for sharing your thoughts.
I'm going to play around with your two suggestions which of the two works best for me.
Thanks Jaap.