Jump to content

Finding if 2 or more words are included in a variable


errietta

Recommended Posts

if (variable.match("word1") && variable.match("word2")) doSomething();

Link to comment
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...