Problems with Filter?
Rick Harrison
harrison at all-auctions.com
Sat Mar 12 17:21:31 EST 2022
put "THIS*FIND" into tTarget
put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString
put tLargeTextString into pText
— Adding your code here Mark:
put ".*THIS.*FIND.*" into tTarget
filter pText with regex pattern tTarget into tFilteredTextResult
answer "tFilteredTextResult = " & tFilteredTextResult
yields:
tFilteredTextResult = "abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz”
So what did it filter? It’s the same string I started with.
Rick
> On Mar 12, 2022, at 3:43 PM, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> or
> put ".*THIS.*FIND.*" into tTarget
> filter pText with regex pattern tTarget into tFilteredTextResult
More information about the use-livecode
mailing list