JavaScript Unexpected Quantifier Error in Internet Explorer, but works in Google Chrome JavaScript Unexpected Quantifier Error in Internet Explorer, but works in Google Chrome google-chrome google-chrome

JavaScript Unexpected Quantifier Error in Internet Explorer, but works in Google Chrome


Only Google Chrome supports lookbehind ?<!

So replacing (?<!-) with [^-] should do the trick.