Regex (matchChunk) help...
bobsneidar at iotecdigital.com
Fri Jun 15 11:53:10 EDT 2018
one way would be to populate a memory database, then query it with LIKE:
SELECT * FROM memorydb WHERE stringtext LIKE 'selkirkst%' OR stringtext LIKE '%skyrider1'
If you need lines that have both use a single comparison 'selkirkst%skyrider1'
Sometimes SQL is the best way to find things.
> On Jun 15, 2018, at 08:45 , Glen Bojsza via use-livecode <use-livecode at lists.runrev.com> wrote:
> I have a couple of hundred pages of text where I need to extract out a
> different string.
> The ending of each string I need has the same ending skyrider1
> The beginning of each string is the same selkirkst
> The middle of each string can be any text.
> The problem is that within each line where a string exists there are
> several strings that have the same beginning selkirkst but none of the have
> the correct ending skyrider1.
> My thoughts are to find ending of the string first and then work backwards
> to the first beginning string.
> I created the following example which is gibberish but should make this
> clearer... this is the string I want to extract from the line given is
> *selkirkst is
> placed in the second **skyrider1*
More information about the Use-livecode