Hm. It doesn't seem to be about ranges, but about multibyte characters.
It works:
var exp:RegExp = new RegExp("[\u00A0-\u0FCF]", "gi");
var str:String = "\u00A1 \u00A2 \u00A3 \u00A3";
trace("subject:", str);
trace("match:", str.match(exp));
And this is not so:
var exp:RegExp = new RegExp("[\u00A0-\u0FD0]", "gi");
var str:String = "\u00A1 \u00A2 \u00A3 \u00A3";
trace("subject:", str);
trace("match:", str.match(exp));
In any case, you can use the RegExp constructor, which converts the string to the appropriate template.
source
share