I'm using a regEx to convert all the double quotes in an xml string before saving to an mysql database (any doublequotes get escaped by the PHPcode).
buildXML = buildXML.replace(/"/g,"'");
however after that line all the following turns red (I assume because of the unbalanced double quotes).
what other way can I express the regEx?
Your syntax looks fine (that compiles, right?)--FlexBuilder is just not being as smart as it should. The easiest way to fix this is to use a RegExp object instead of a RegExp literal:
buildXML = buildXML.replace(new RegExp('"', 'g'),"'");
Truviso is hiring: http://www.truviso.com/company-careers.php?i=87