replace double semicolo
I could not replace double semicolon into 2's double qu开发者_运维百科ote.
result = original_text.replace(";;", ';"";');
result = result.replace(";;", ';"";');
What is the correct code?
Is this what you want?
var a:String = "the;;quick;;brown;;fox"; trace(a.replace(/;;/g,'""')); //Use Regular Expression result : the""quick""brown""fox
精彩评论