HTML & Script

원하는 문자열을 전부 replace하기

duraboys 2007. 5. 2. 22:57
String.prototype.trim = function()
    {
      return this.replace(/(^\s*)|(\s*$)/gi, "");
    }

    String.prototype.replaceAll = function(str1, str2)