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. Bob S > On Jun 15, 2018, at 08:45 , Glen Bojsza via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Hello, > > 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* _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode