containsany

containany(haystack: text, needles: text, separator: text) 🡒 boolean, pure function

Indicate whether the haystack contains any needle, as obtained by splitting the second argument through the third argument.

haystack = "1+2+3+4"
needles = "-,+,*,/"
separator = ","

show scalar "" with 
    containsany(haystack, needles, separator) // 'true'

The separator, i.e. the third argument, is not allowed to be empty.