On 3/12/22 14:21, Rick Harrison via use-livecode wrote:
So what did it filter? It’s the same string I started with.
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
--
Mark Wieder
ahsoftw...@gmail.com
_______________________________________________
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