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




_______________________________________________
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

Reply via email to