[relaxng-user] rfc2822 compliant email pattern?
Dave Pawson
dpawson at nildram.co.uk
Fri Jan 16 19:32:12 ICT 2004
At 19:19 16/01/2004, jcowan at reutershealth.com wrote:
>Dave Pawson scripsit:
> > Is it possible to write a pattern for an email address please?
> >
> > fred at example.com
> > fred.baker at example.org.uk
>
>It's a regex that takes up several pages. See the book _Mastering Regular
>Expressions_.
Mmm. :-)
> If you don't care about full RFC (2)822 generality, then
>you can do a fair amount with ".*@.*\..*".
I'm getting a little more than that so far,
but it sure ain't several pages...yet.
Thanks. DaveP
More information about the relaxng-user
mailing list