[relaxng-user] rfc2822 compliant email pattern?
jcowan at reutershealth.com
jcowan at reutershealth.com
Fri Jan 16 14:19:45 ICT 2004
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_. If you don't care about full RFC (2)822 generality, then
you can do a fair amount with ".*@.*\..*".
--
"There is no real going back. Though I John Cowan
may come to the Shire, it will not seem jcowan at reutershealth.com
the same; for I shall not be the same. http://www.reutershealth.com
I am wounded with knife, sting, and tooth, http://www.ccil.org/~cowan
and a long burden. Where shall I find rest?" --Frodo
More information about the relaxng-user
mailing list