VBscript의 replace함수와 같은 javascript

2009/07/03 17:17


var str = "this is example for replace() method and Example of regular Exp";
var newStr = str.replace(/example/gi, "sample");
alert(newStr);
2009/07/03 17:17 2009/07/03 17:17

미소 Javascript



Trackback Address:http://non-sens.co.kr/blco/trackback/3