Skip to main content
MindStormPhoto
Known Participant
September 24, 2022
Question

Smart Collection - How to search on dash or space ('-' or ' ')

  • September 24, 2022
  • 1 reply
  • 134 views

I am trying to create a smart collection that will filter out any photos that have a dash or space ('-' or ' ') as the last character of a title.

 

The filter does not work...  I expect these are used as "special characters." Is there any way around that? Some way to indicate "use this character as typed."

 

I have tried ""  (as in "-") and \ (as in \-) but neither work. I cannot find any docs on how to search for special characters. I am hoping that I just overlooked it somewhere...

This topic has been closed for replies.

1 reply

johnrellis
Legend
September 30, 2022

[This post contains formatting and embedded images that don't appear in email. View the post in your Web browser.]

 

LR's search facility is not well-designed and has bugs.

 

For hyphens, the criterion "Title ends with -" doesn't work in smart collections.  However, it does work in the Library Filter bar: works in both smart collections and the Library Filter bar:

 

With respect to spaces, there's no way to search for spaces with LR's built-in search.

 

As a workaround, you could use the Any Filter plugin to search for titles ending with space or hyphen:

 

[Update: I incorrectly tested smart collections previously.]