This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes email validation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "email validation problem" Watch "email validation problem" New topic

email validation problem

srinivas srini

Joined: Feb 03, 2004
Posts: 23
I have a validation for email which should allow only , or ;

the validation works fine if I enter the following in the text field,,,,,,,

but the validation does NOT work if I enter the following in the text fields;;;;;;;

the following will work properly;

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

Joined: May 13, 2002
Posts: 180
You might find this useful

I agree. Here's the link:
subject: email validation problem