Regular expressions - Email Validation

2010-03-31 Thread seeking_solution
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&])*

Re: Regular expressions - Email Validation

2010-03-31 Thread seeking_solution
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

Re: Regular expressions - Email Validation

2010-03-31 Thread seeking_solution
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