On 3/12/22 12:06, Rick Harrison via use-livecode wrote:
Hi Mark,
matchText works fine.
That doesn’t explain why “filter” doesn’t work though.
Yes. It does. Filter won't give you a substring.
You can use filter to get the whole line of text, but you'll still have
to dig out the substring if that's what you're after.
In your original code, change to
put "*THIS*FIND*" into tTarget
filter pText with tTarget into tFilteredTextResult
or
put ".*THIS.*FIND.*" into tTarget
filter pText with regex pattern tTarget into tFilteredTextResult
--
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