Set field validation with regular expressions