regexhub It's time to stop writing the same pattern anymore Installation npm install regexhub Usage var hub = require('regexhub'); var regex = new RegExp(hub.email); regex.test('zhongchiyu@gmail.com'); License MIT