If you need exactly two words, how about something like this:

set the wholeMatches to true
get wordOffset(word1, tText)
if (it > 0) AND (it = (wordOffset(word2, tText) - 1)) then
  ...
end if

It seems wordOffset() will ignore multiple spaces for you.

HTH,
Brian

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to