Re: Latest proposal for smart regexes in RELAX NG

David Tolpin <[email protected]> Fri, 7 May 2004 16:33:50 +0500 (AMST)
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
> > By the way, my example covers the full syntax of addr-spec in RFC2822.
> 
> No, it doesn't.

It does; a good thing about it is that it is not a proposal,
it is an implementation.  You could just try to validate
to make sure it validates fine your addresses.

> The production fails to permit [email protected], for instance (a

It does. Just try it.

> Will the regex match amy(oh, her)@talsever(oh, there).org? 

This is not RFC2822. You have been inattentive. Comments are not
allowed inside the address, only before or after.

> perhaps too tired to be arguing about it.

How about reading the spec?

> That would be nice.  But should it be a translation of the RFC2822 BNF
> for 3.4.1, or of the above regex?  It seems to me that starting clean from
> the BNF would be a better test, but I believe that the above regex doesn't
> match it.

Please do. Start with BNF and do it in XML. Let us compare the result.

David Tolpin