I\'m pretty sure regular expressions are the way to go, but my head hurts whenever I try to work out the specific regular expression.
What regular expression do I ne
Regular Expressions are not needed here. Try this:
if((string1.toUpperCase().indexOf("ERROR",0) >= 0 || string1.toUpperCase().indexOf("WARNING",0) >= 0 ) && string1.toUpperCase().indexOf("PARSING",0) >= 0 )
This also takes care of the case-insensitive criteria