How to filter a list with a variable anywhere in a line

Keith Clarke keith.clarke at me.com
Mon Aug 13 11:32:10 EDT 2018


Folks,
I’m trying to filter a list of comma-delimited values to include only the lines that contain a string - somewhere in any of the items.

What’s wrong with this syntax - it’s currently returning no lines when I can see tString in the second line of the variable?

filter lines of tList with "*[" & tString & "]*"


I’m guessing my concatenation fails to create good regex?

TIA
Keith


More information about the use-livecode mailing list