ExifTool Forum

ExifTool => Newbies => Topic started by: Craxo on October 30, 2020, 06:01:57 AM

Title: Unable to replace comma on Creator tag
Post by: Craxo on October 30, 2020, 06:01:57 AM
Hi, I've asked this on a previous post ( https://exiftool.org/forum/index.php?topic=11183.msg59842#msg59842 )
I want to replace all non alphanumeric characters to spaces in the tags, I was suggested to use this command:
exiftool -tagsfromfile @  --TAG -api "filter=s/[^\s\w]/ /g" img

Now i've noticed that a unexpected thing is happening, the script does replace all nonalphanumeric characters in all tags except creator tag, the commas stay in place.
when even running against all tags the comma stays in place:
exiftool -tagsfromfile @  -api "filter=s/[^\s\w]/ /g" img

I've tried the following versions with no luck:
11.70
11.99
12.09

Your help would be much appreciated
Thanks!
Title: Re: Unable to replace comma on Creator tag
Post by: Phil Harvey on October 30, 2020, 06:44:55 AM
XMP-dc:Creator is a list-type tag.  When combining list items, ExifTool uses a comma separator by default, but that comma is not stored in the file.  Read more about this in FAQ 17 (https://exiftool.org/faq.html#Q17)

- Phil
Title: Re: Unable to replace comma on Creator tag
Post by: Craxo on October 30, 2020, 08:15:50 AM
Ah I see, thank you very much Phil!