Image-ExifTool - Re: xmp:subject -how to distinguish separate keywords?

Posted on Sun Dec 23 19:59:43 2007 by exiftool in response to 6755 (See the whole thread of 5)
Re: xmp:subject -how to distinguish separate keywords?
Hi Bogdan,

"$tag=~/xxx/" is a Perl regular express that evaluates to true if the string "xxx" is inside the value of tag. This is different than "eq" which tests for string equality.

You can use $tag=~/\btir\b/. The \b in a regular expression represents a word boundary, so with this addition strings like "stiri" won't match.

In Windows, the outside quotes must be double. So use this:

exiftool -ApertureValue -if "$make eq 'Canon'" *.jpg

- Phil
Write a response