View Single Post
Old 06-25-2022, 10:09 AM   #869
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Quote:
Originally Posted by chaley View Post
My guess is you want to use list_intersection() similarly to what I described in post 864, as in
Code:
program:
	list_intersection($tags, 'X, Y, Z', ',')
The function returns items in $tags that are also in the list 'X, Y, Z', e.g. if the tags are 'A, B, X, Z' then the function returns 'X, Z'.
I do actually, never thought about using it this way as well, but I guess that would work if instead of append to field I use replace field??

Works perfect except for one little snag, where I had to circumvent an ' in one of the tags with a \ like in regex.

Last edited by ackomb; 06-25-2022 at 10:54 AM.
ackomb is offline   Reply With Quote