ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: irinaonline on October 19, 2019, 04:23:26 PM

Title: -api filter
Post by: irinaonline on October 19, 2019, 04:23:26 PM
I came along to need 2 filters applied with -api filter, however, one filter replaces the other.

How can I have both filters be valid?

The actual syntax is

-sep ", " -m -addtagsfromfile @ -api filter=""s/\s*\(.*//"" -api filter=""s/\s*\..*//""
Title: Re: -api filter
Post by: StarGeek on October 19, 2019, 04:37:10 PM
Combine them by separating them with a semicolon ;

-api filter="s/\s*\(.*//;s/\s*\..*//"
Title: Re: -api filter
Post by: Hayo Baan on October 19, 2019, 04:38:33 PM
Or simply like so: filter="s/\s*[(.].*//"
Title: Re: -api filter
Post by: irinaonline on October 19, 2019, 04:51:12 PM
perfect. thank you. will try it out asap.