I have an array...
and a string which is user input...Code:var blockChars = new Array("!", "#", "*", "@", "th", "td");
I want to be able to replace all instances and have it be case insensitive in the input string using the blockChars array. Replace with nothing ("")Code:var input = textbox.value;
User input is
# is a th with td and a @ but even more TD minus one tH plus a #
and the output would be
is a with and a but even more minus one plus a
How would I do that?