Answered
arbitrary mask for an email address of random length
I would like to create an email address that allows random lengths before and after the @ symbol.
I would like to create an email address that allows random lengths before and after the @ symbol.
I understood that, and the RegExp I provided will do it.
Use this code as your field's custom validation script:
if (event.value) {
event.rc = /^.+@.+$/.test(event.value);
}
If you want to make sure it includes a period in the second part use this, instead:
if (event.value) {
event.rc = /^.+@.+\..+$/.test(event.value);
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.