Node.js examples for String:Replace
String to replace New Line Chars with regex
String.prototype.replaceNewLineChars = function( replacement ) { return this.replace( /\n/g, replacement ) ; }