Author Topic: Using Find  (Read 91 times)

Offline Frank

  • Full Member
  • ***
  • Posts: 210
    • View Profile
    • Frank Fitzpatrick Photography
Using Find
« on: Yesterday at 12:40:17 PM »
I am trying to use the Find function which is generally very good. However, I tried to Find a group of images with the Text "Glasgow" but it also gives me images with the text "Port Glasgow" as well as "Glasgow". For context, Glasgow and Port Glasgow are about 50 miles apart the former at the head of the river Clyde and the latter at about half way down the river Clyde.

Can anyone give me some suggestions?

Offline Bob Russell

  • Camera Bits Staff
  • Sr. Member
  • *****
  • Posts: 292
    • View Profile
    • Camera Bits, Inc.
Re: Using Find
« Reply #1 on: Yesterday at 04:41:06 PM »
If you do not use the Tag checkbox in your normal workflow then you can try the following :
- Use the Find utility for All images, looking for Glasgow.
- Use the Find utility on the Selected images, looking for Port.
- Tag the Port Find results with the Command + shortcut or the Image menu option, Tag photos
- Use the unTagged option in the View menu to hide the images with Port Glasgow.
- Use the Find utility one more time for All images, Looking for Glasgow.
Once you have updated just the Glasgow images, change the View back to All. The Command-t shortcut will select the Tagged images and the Command - shortcut will unTag these images.

Best regards,

--Bob

Offline ahoward

  • Camera Bits Staff
  • Uber Member
  • *****
  • Posts: 1132
    • View Profile
Re: Using Find
« Reply #2 on: Today at 10:20:22 AM »
This kind of thing is really where you want to use Regular Expressions to match a specific pattern (the pattern being: Match 'Glasgow' but only if it is not preceded by "Port ")

To do this, in the Find window, check the box for 'Grep', and then in the text field where you type the text you want to find, enter the following:

(?<!Port\s)Glasgow

https://regexr.com/ is a pretty good resource for learning more about regular expressions,