开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜