var str2 : String = "Expander Detected (%MSG_ID%)";
var r2 = ~/[\(%MSG_ID%\)]+/g;
trace (r2.replace(str2, ""));
Expected Result: Expander Detected
Actual Result: Expander etected
I need to replace '(%MSG_ID%)' from my strings. Characters before '(%MSG_ID%)' are dynamic so we can not replace them manually.
Aucun commentaire:
Enregistrer un commentaire