Re: Weirdness with filter (maybe?)

2017-04-20 Thread hh via use-livecode
There is also brilliant work optimized for LC syntax. By the one and only LC-master of regex, Thierry: https://sunny-tdz.com/livecode/sunnyrex > Bob S. wrote: > Filter, unlike matchtext, in the form you are using, is not using regex. > There is a form of > filter however that does. If you need

Re: Weirdness with filter (maybe?)

2017-04-20 Thread Bob Sneidar via use-livecode
Filter, unlike matchtext, in the form you are using, is not using regex. There is a form of filter however that does. If you need help with a regex expression, I use a neat little tool called RegexMagic. 30 day demo and not too expensive if you use regex expressions on a regular basis. (See

Re: Weirdness with filter (maybe?)

2017-04-20 Thread Alan via use-livecode
Try filter lines of MyList with ("*" & CharStringX & "*" & tab & "*") to get all lines where CharStringX is contained in the first part of the string before the tab. > filter lines of MyList with ("*" & CharStringX & "*" & tab) HTH cheers Alan

Re: Weirdness with filter (maybe?)

2017-04-20 Thread Alex Tweedly via use-livecode
I think it should be filter lines of MyList with (charStringX & TAB & *) i.e. get lines containing this string X followed by TAB followed by anything Alex On 20/04/2017 09:22, Quentin Long via use-livecode wrote: I have a return-delimited list. Each line of this list consists of [some text]

Weirdness with filter (maybe?)

2017-04-20 Thread Quentin Long via use-livecode
I have a return-delimited list. Each line of this list consists of [some text] & tab & [other text]. I want to see all the lines of the list for which [some text] contains Character String X. This is obviously a job for the filter command, right? So I try this: filter lines of MyList with ("*"