This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

email validation problem

 
srinivas srini
Greenhorn
Posts: 23
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might find this useful


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic