Bug fix for regex matching on server side.