tags:

views:

48

answers:

0

My custom pattern to validate an email address is this

([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)

I selected the control, set the second option to "matches pattern" and the third one is a custom pattern. I am able to submit the form to the server with a bad email address. Does the validation work when the form is running in the browser?

related questions