use regex in format_validation