Looking for some assistance here - I'm trying to perform a case insensitive check to see if a word in a string matches any words in an array. If there is a match, I then want to remove that particular word from the string. Can anyone suggest the best approach to achieve this?
Your help is greatly appreciated.
var testArray = new Array('that','from','again');
var testString = "It's That time again";
In the given example, the words 'That' and 'again' should be eliminated from the string.