Jim Ault wrote:
I would tackle this using the filter commandreplace cr with tab in textStr set the wholematches to true filter textStr with "*"& token1&"*" filter textStr with "*"& token2&"*" filter textStr with "*"& token3&"*" if textStr is empty then return false else return true A better form would be function allWordsPresent textStr, wordList replace cr with tab in textStr set the wholematches to true repeat for each word WRD in wordList filter textStr with ("*" & WRD & "*") end repeat return not (textStr is empty) end allWordsPresent
This looks promising, thanks. It looks like there is no single-pass method, but since filter is pretty fast it may do okay. I didn't even quote your regex explanation, I don't want to touch it. :)
-- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
