In struts I have regular expression for validating email like this -
EMail
^([a-zA-Z0-9]([\w\.-]*[a-zA-Z0-9])*[...@[a-za-z0-9]([\w\.-]*[a-zA-Z0-9])*\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z])[\s]*$
Now I want to allow & in the email. I tried like this
^([a-zA-Z0-9&]([\w\.-]*[a-zA-Z0-9&])*
essfully but validation fails.
not sure whats happening.
seeking_solution wrote:
>
> In struts I have regular expression for validating email like this -
>
> EMail
>
> ^([a-zA-Z0-9]([\w\.-]*[a-zA-Z0-9])*[...@[a-za-z0-9]([\w\.-]*[a-zA-Z0-9])*\.[a-zA
xml escape is working fine. thanks.
--
View this message in context:
http://old.nabble.com/Regular-expressions---Email-Validation-tp28097766p28099880.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To un
3 matches
Mail list logo