making regex SW more "server-friendly"