Hello,
I am fairly new to Wix and have no coding experience. I need to apply certain validations to my e-mail field in a form.
I am successfully able to validate other fields using Regex but when I apply on e-mail field the below Regex it doesn't seem to be working and instead it rejects all values in e-mail field as invalid.
^(?=[A-Z0-9][A-Z0-9@._%+-]{5,253}$)[A-Z0-9._%+-]{1,64}@ (?:(?=[A-Z0-9-]{1,63}\\.)[A-Z0-9]+(?:-[A-Z0-9]+)*\\.){1,8}[A-Z]{2,63}$
Any idea on how I might be able to get the result of above Regex?
Thanks,
Anand
Hello,
i know this is an old topic but can someone please provide a REGEX for the below criteria? the non-code one please. i would like to inset it in the settings of the input.
At least 8 characters
At least 1 capital letter
At least 1 lowercase letter
At least 1 number
At least 1 special character
also if possible i would like the users to be able to use all special characters
=+-_)(*&^%$#@!~`/|\}{][":';?><., besides being alphanumeric
OP, it looks like your regex is only looking for capital letters.
Oops. I got it now. There is actually a pull-down to choose the field type. Working now.
I am having the same problem. Used the same regex as above but not working.
Any WIX admin who can shed some light on this please?
Nope, The regex I got is from https://www.regular-expressions.info/email.html
This function is from StackOverflow ....
function validateEmail(email) { var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(email.toLowerCase()); }
Is that the one you are using?
See more here:
https://stackoverflow.com/questions/46155/how-can-you-validate-an-email-address-in-javascript
Validating emails is a very common problem --> (google is your friend)