merged regex.js into server.js