Using regular expression support to validate data