Node.js examples for Regular expression:Match
Use regex to check string start
String.prototype.startsWith = function(str) { return (this.match("^" + str) == str); }