Ok, that straightened out my confusion. Thanks!
> On Mar 12, 2022, at 5:40 PM, Mark Wieder via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Exactly. You want matchtext, not filter. > > There is a way to finesse this if you really need to use filter: > > local tSubString, tTarget, tLargeTextString > local tResult > > put "*THIS*FIND*" into tTarget > put "abcdef&cr&ghijkTHISISMYTEXTTOFINDlmnopq&cr&rstuvwxyz" into > tLargeTextString > > filter tLargeTextString with tTarget > set the itemDelimiter to "THIS" > put item 2 of tLargeTextString into tSubString > set the itemDelimiter to "FIND" > put item 1 of tSubString into tResult _______________________________________________ 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