This allows a form to validate using standard regular expressions.