errietta Posted August 6, 2008 Share Posted August 6, 2008 Is there a way to find if 2 or more words are included in a variable? Link to comment Share on other sites More sharing options...
Synook Posted August 6, 2008 Share Posted August 6, 2008 if (variable.match("word1") && variable.match("word2")) doSomething(); Link to comment Share on other sites More sharing options...
Jesdisciple Posted August 6, 2008 Share Posted August 6, 2008 Erm, I think this sounds like a regex question... Errieta, do you know what the words are? If not, what are they separated by, and what can they consist of? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.