Add configurable option to server for validation regex.