list comparisons do not accept regexes.
Try using
list_re() [
see here]:
Quote:
list_re(src_list, separator, search_re, opt_replace) – Construct a list by first separating src_list into items using the separator character. For each item in the list, check if it matches search_re. If it does, then add it to the list to be returned. If opt_replace is not the empty string, then apply the replacement before adding the item to the returned list.
|
Using a "^" to match at the start of string (each tag is evaluated as a string in turn) and the negative lookahead (?!matched-regex-to-ignore) we get:
PHP Code:
program:
list_re(
field('tags'),
',',
'^(?!send to .*)',
''
)
So the whole program will look like:
PHP Code:
program:
str_in_list(
list_re(
field('tags'),
",",
"^(?!send to .*)",
""
),
",",
"First",
"First",
""
)
list_re() does not accept a list of regexes, so you must use regex (either|or) for multiple regexes.