photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Darius1968 on November 20, 2021, 02:04:47 AM

Title: Getting Rid Of "}" In Keywords
Post by: Darius1968 on November 20, 2021, 02:04:47 AM
So, I have some files, in my DB, for which, their Keywords, unfortunately, contain the character:  }, and I simply, want to get rid of them.  The following argument, is what I've attempted, in a metadata template, to act on the keywords. 

{File.MD.XMP::Lightroom\hierarchicalSubject\HierarchicalSubject\0|replace:~}==;}

I know, for a fact, that I have already, multiple times, had success with this argument, when }, is not among the character strings, in the pattern, meant for deletion.  So, is there anything, I can do? 
Title: Re: Getting Rid Of "}" In Keywords
Post by: Mario on November 20, 2021, 10:22:42 AM
Variables cannot contain { or } and the ~ escape for replace: does not work on { or } of course.

I recommend you just use the The Metadata Mechanic (https://www.photools.com/help/imatch/#app-md-mechanic.htm) and replace { and } with 'nothing'.
The Metadata Mechanic is a very powerful feature designed specifically to deal with all kinds of metadata problems. Have you not used it yet?

(https://www.photools.com/community/index.php?action=dlattach;topic=12016.0;attach=28464;image)