0

hi i am using the regex to validate the email but when i try to user underscore in email address than is giving me the error.

Following is regx which i am using.

^[a-zA-Z0-9-'+~]+(.[a-zA-Z0-9-'+~]+)*@([a-zA-Z_0-9-]+.)+[a-zA-Z]{2,10}$

if (not isValid("regex", arguments.propertyValue,"^[a-zA-Z0-9-'\+~]+(\.[a-zA-Z0-9-'\+~]+)*@([a-zA-Z_0-9-]+\.)+[a-zA-Z]{2,10}$")) {
}

can any one please let me know which regx should i use?

Preet sohal
  • 29
  • 1
  • 6

0 Answers0