commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramadoss Chinnakuzhandai" <rchinnakuzhan...@register.com>
Subject RE: Email Validation Rules
Date Tue, 18 Nov 2003 20:34:27 GMT
It does working for the expression "^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z0-9._%-]{2,4}$" but when
I tried to add a-z on the same expression it says invalid expression I mean ^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z0-9._%-]{2,4}$

Any clue where I'm wrong...?

-Ram



-----Original Message-----
From: David Friedman [mailto:humble@ix.netcom.com]
Sent: Tuesday, November 18, 2003 2:58 PM
To: Ramadoss Chinnakuzhandai
Subject: RE: Email Validation Rules


Strange, your pattern resolves as true in the validator 1.0.2 and the
development nightly v1.X development build. From their cvs source, I don't
see how it would validate. :(  I can't find the RFC at the moment to see if
that's a valid character.  I figure it should end in an alphabetic
character.

Regards,
David

-----Original Message-----
From: Ramadoss Chinnakuzhandai [mailto:rchinnakuzhandai@register.com]
Sent: Tuesday, November 18, 2003 1:46 PM
To: David Friedman
Subject: RE: Email Validation Rules


for example it does accepting abc@xyz.com! -here I appended a special
character ! at the end.



-----Original Message-----
From: David Friedman [mailto:humble@ix.netcom.com]
Sent: Tuesday, November 18, 2003 1:46 PM
To: Ramadoss Chinnakuzhandai
Subject: RE: Email Validation Rules


Any examples of the character's it's letting through so I can see for
myself?

thanks,
David

-----Original Message-----
From: Ramadoss Chinnakuzhandai [mailto:rchinnakuzhandai@register.com]
Sent: Tuesday, November 18, 2003 1:42 PM
To: Struts Users Mailing List
Subject: RE: Email Validation Rules


yeah...I tried that way but the problem I belive is it does accepting
special character after the . part of email address.

any other idea how to make it work....???




-----Original Message-----
From: David Friedman [mailto:humble@ix.netcom.com]
Sent: Tuesday, November 18, 2003 1:16 PM
To: Struts Users Mailing List
Subject: RE: Email Validation Rules


I'd suggest calling:

org.apache.commons.validator.GenericValidator.isEmail(String arg);


-----Original Message-----
From: Ramadoss Chinnakuzhandai [mailto:rchinnakuzhandai@register.com]
Sent: Tuesday, November 18, 2003 1:03 PM
To: Struts Users Mailing List
Subject: Email Validation Rules


Can any one correct me where I'm wrong using the following rule for
validating email address....It fails to validate against the valid email
address..?

^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z0-9._%-]{2,4}$

Tnx in advance :)

-Ram







---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message