Is there any way to make Custom own email regular expression?
Actually I want to create one registration form in p.h.p. and for email validation,
I want to make my own customized email regular expression.
For example,lets say I want to check that the given mail is
name-number@ves.ac.in
.
It should only accept email id that ends with ves.ac.in
and should notify if given mail is not matching with expression.
I did lot of experiment on:
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$
but this expression but failed. please help.