How do I pattern match a list of words against a string using String.match()? I have a function which is to search a string against a list of keywords, if the string contains any of the keywords I want the match() funciton to return true... here is what I've got:
boolean statusMessage(String msg)
String regKeywords = "[failed | denied | failure | timeout]";
Worth 500 points.