how is a pattern defined to check whether it's a valid Email-address with optional arrows like <example.com> which shouldn't be necessary. And if the Email-address begins with < but doesn't end with the enclosing > it should be ignored as well as < .... >> etc..
Can anybody help me?
The pattern for an Email-address is
^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$;
Aucun commentaire:
Enregistrer un commentaire