struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Almeida <mig...@almeida.at>
Subject Re: Is the email regex validator in Struts validation incorrect?
Date Mon, 25 Aug 2014 16:11:46 GMT
I have added it to the JIRA -
https://issues.apache.org/jira/browse/WW-4389


I can't seem to find the actual standard though (i.e., the one in place
that essentially doesn't allow these characters). For documentation
purposes, does anyone know what effective standard disallows these
characters?

Cheers!
Miguel

On Mon, 2014-08-25 at 10:51 -0500, Paul Benedict wrote:

> I looked up the RFC. The document lists itself as a "proposed standard" [1]
> so it's not really available yet for general use (but correct me if wrong).
> I propose that an enhancement should be made in JIRA to handle this.
> 
> [1] http://tools.ietf.org/html/rfc6531
> 
> 
> 
> Cheers,
> Paul
> 
> 
> On Mon, Aug 25, 2014 at 10:46 AM, Miguel Almeida <miguel@almeida.at> wrote:
> 
> > This is the regex for email validation in Struts:
> >
> > \\b^['_a-z0-9-\\+]+(\\.['_a-z0-9-\\+]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)\*
> > \.([a-z]{2}|aero|arpa|asia|biz|com|coop|edu|gov|info|int|jobs|mil|mobi|
> > museum|name|nato|net|org|pro|tel|travel|xxx)$\\b
> >
> > I had a report of this failing for a user with an umlaut email
> > ( shl├Ąger@example.com ).  My regex is not very good, but the above
> > mentioned regex doesn't seem to allow said characters.
> >
> > However, International characters above U+007F are permitted by RFC
> > 6531 :
> >
> > http://sphinx.mythic-beasts.com/~pdw/cgi-bin/emailvalidate
> >
> >
> >
> > What is your view on this? Could this regex be incorrect and miss out
> > any special characters?
> >
> > Miguel Almeida
> >
> >

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message