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
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:
Validating emails is a very common problem → (google is your friend)
Any WIX admin who can shed some light on this please?
I am having the same problem. Used the same regex as above but not working.
Oops. I got it now. There is actually a pull-down to choose the field type. Working now.
OP, it looks like your regex is only looking for capital letters.
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