Usage var regex = require('{%= name %}')(); regex.match('match words.'); //=> ['match', 'words'] regex.match('match words, again.'); //=> ['match', 'words', 'again']