Regex pattern must be a separate attribute