Javascript RegExp with a variable not working in IE
- by TenJack
I am having a problem getting a RegExp with a variable to work in IE. It works fine in firefox:
wordChar = word[i]
var expr = new RegExp(wordChar,"i")
var hold = expr.test(input[i])
Not sure how to go about fixing this.