Node.js examples for Regular expression:Replace
Replace number by regex
Util.replaceNumber = function(original, number) { return original.replace(/[\d]+/, number); };