Pattern Matching in Livecode
Posted: Wed Nov 09, 2016 1:38 pm
Hi all,
Recently I made a very long script for searching a pattern among a list
(download and check the zipped stack attached to this message).
I suspect that LiveCode provides better tools for this task, but I don't know
which are and how to use them. Maybe a simpler solution is to employ a regex,
arrays combinations or a really clever handler.
How many different methods (functions and commands) provides Livecode
to make this task of comparing and finding 3 words (from a list of 12 words)
among 1080 lines of 4 words?
Thanks in advance!
Al
Recently I made a very long script for searching a pattern among a list
(download and check the zipped stack attached to this message).
I suspect that LiveCode provides better tools for this task, but I don't know
which are and how to use them. Maybe a simpler solution is to employ a regex,
arrays combinations or a really clever handler.
How many different methods (functions and commands) provides Livecode
to make this task of comparing and finding 3 words (from a list of 12 words)
among 1080 lines of 4 words?
Thanks in advance!
Al