Move regexes to server