dist-git help wanted: write me a regex!

Bruno Wolff III bruno at wolff.to
Tue Dec 22 18:24:33 UTC 2009


On Mon, Dec 21, 2009 at 12:12:19 -0500,
  James Cassell <fedoraproject at cyberpear.com> wrote:
> On Mon, 21 Dec 2009 11:57:16 -0500, Garry Williams
> <gtwilliams at gmail.com> wrote:
> 
> >
> >"The grammar described in RFC 822 is surprisingly complex."
> >http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html
> 
> yeah, no kidding, and so is a proper regex to match it.  I figured
> anything not a space or '@' followed by '@' followed by anything not
> a space, '@', or '>' should catch most cases.

People aren't really using valid rfc822 addresses there anyway and you
want liberal matching.




More information about the devel mailing list