Conversation

validemail: { name: "Validemail", type: "regex", regex: "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}", message: oFlow.i18n.DD_FORM_VALIDATION_VALIDEMAIL }, Yeah. No.
1
It makes no sense to use a regex though, because you can use a type=email input in a web page and check it with the library you use to send emails before saving it. Proper input field and `new InternetAddress(email).validate();` is all that attestation.app does with it.
1
1
Show replies