[relaxng-user] Latest proposal for smart regexes in RELAX NG
David Tolpin
dvd at davidashen.net
Fri May 7 16:33:50 ICT 2004
> > 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 amy.lewis at talsever.org, 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
More information about the relaxng-user
mailing list