Validation

Following are the validation syntaxes
Email

String emailPattern = "[a-zA-Z0-9._-]+@[a-zA-Z0-9]+\\.+[a-zA-Z]{2,}";