Filter with wildcards
Neville Smythe
neville.smythe at optusnet.com.au
Tue Oct 31 16:26:20 EDT 2023
Reglar expressions is definitely the way to go
So you want to catch any number of characters
.*
Followed by the string “with “
.*with
Followed by either “you” or “u”
.*with (you|u)
Followed by a space and then any umber of characters, giving
.*with (you|u) .*
Except you might want to look for lines ending in with you, or a period
.*with (you|u)( .*|\.|$)
And what about “With You”. Since regex is case sensitive by default
(?i).*with (you|u)( .*|\.|$)
Filter tList with regex "(?i).*with (you|u)( .*|\.|$)"
Writing this in a rush so I hope I haven’t got that wrong
Neville Smythe
More information about the use-livecode
mailing list