Re: rfc2822 compliant email pattern?

Dave Pawson <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
At 19:35 16/01/2004, David Tolpin wrote:
Thanks David.
Much appreciated.

Boy that's a bit scary :-)

<grin/> Don't tell me, you just worked it out?


regards DaveP.




>if you need a regular expression for addr-spec, then it is
>
>start=element addr-spec {
>   xsd:token {
> 
>pattern="""([a-zA-Z0-9!#$%&'*+\-/=?\^_`{|}~]+(\.[a-zA-Z0-9!#$%&'*+\-/=?\^_`{|}~]+)*|"[^"\\]*")@([a-zA-Z0-9!#$%&'*+\-/=?\^_`{|}~]+(\.[a-zA-Z0-9!#$%&'*+\-/=?\^_`{|}~]+)*|\[[^\[\]\\]*\])"""
>   }
>}
>
>Works for both normal addresses and forms like
>
>"David Tolpin"@[Obscure Place]
>
>The expression above is slightly more allowing than required, but should 
>be appropriate
>for the majority of cases.
>
>David
>_______________________________________________
>relaxng-user mailing list
>[email protected]
>http://relaxng.org/mailman/listinfo/relaxng-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.