File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

email validation problem

 
srinivas srini
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a validation for email which should allow only , or ;

the validation works fine if I enter the following in the text field
mail1@email.com,,,,,,,mail2@email.com

but the validation does NOT work if I enter the following in the text fields
mail1@email.com;;;;;;;mail2@email.com

the following will work properly
mail1@email.com;mail2@email.com

this is the regular expression that I have written in my validator class



can anyone let me know what's going wrong here? any solution to this would be very much helpful.

Thanks in advance.

 
Ogeh Ikem
Ranch Hand
Posts: 180
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might find this useful


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic