1 person found this helpful
This is probably a bug in FlexBuilder's syntax highlighting. I've run into something similar before. Between mxml, regular expression literals and xml literals, Flex grammar is a bit much for FlexBuilder at times. Try using the RegExp constructor with a String defining the RE rather than using a literal (i.e., virgolette:RegExp = new RegExp('"', 'ig'); )
thanks, it works but ony with one argument:
virgolette:RegExp = new RegExp('"');
otherwise it returns an error (only one argument expected...)
Are you sure? In Flex 2, 3 and 4, that constructor takes an optional
second argument for flags.
Okay, i was wrong!
Probably there was another mistake, now it's working correctly with two arguments
thank you again