I've been using Format String: $left(%year%,4) to clean up my Year field, but is there a better action that could locate 4 consecutive digits in the YEAR tag (regardless of where they are located within the string) and then use just those 4 consecutive digits as the year (deleting all other characters from the field).
This would allow the year to be extracted regardless of how the date has been formatted.
Danke an beide! Both work now but apperently it is possible to have multiple same-tag attributes in one file. Some of my flacs have 2 Year tags (looks like this in tag panel 2017\2017-11-24) - is there a way to include this occurence in a format string? also, this does show as 2017 in column view, not as both date formats (not that it’s a bad thing but it makes detecting such formatted tags rather difficult).
If you suspect that you have multi-value fields (several fields of the same type) then modify the column definition for "Value", e.g. for YEAR:
Instead of the plain %year% use $meta_sep(year,\\)
Yes, sorry, this treats only the contents of the first entry.
Use $num($meta(YEAR),4)\\
which deletes the second field as it enters a null-string for that field.