Hi,
I have a javascript that runs uses a replace with regular expressions to modify content on a page. I'm having a problem with a specific RegExp (regular expressions) quantifier, though. Every documentation I've read (and I know it work in Regex in other languages, too) says that Javascript supports the "{N}", "{N,}" and "{N,N}" quantifiers. That is, you can specify a particular number of matches you want, or a range of matches. E.g. "(zz){5,}" matches at least 10 "z" in a row, and "z{5,10}" would match any amount of "z" from 5 to 10, no more and no less.
The problem is, I can match an exact number (e.g. "z{5}") but not a range. The nearest I can figure is that it has something to do with the comma in the regex string, but I don't understand why and can't get around this. I have tried escaping the comma and even using the unicode hexidecimal string for comma (\u002C), but to no avail.
If anyone has any insight, it would be much-appreciated.