Convert Regex filter to Regex constraint