replaceLine.js
String.prototype.replaceLine = function (_regExp, _repText) {
var tExp = String(_regExp);
var regExp = new RegExp(tExp.split("/")[1], tExp.split("/")[2]);
var strArry = this.split("\n");
var strRet = "";
for (var i in strArry) {
strRet += strArry[i].replace(regExp, _repText) + "\n";
}
return strRet;
};