Re: [Exim] Header rewriting - From: fields comment and phras…

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: exim-users
Assumpte: Re: [Exim] Header rewriting - From: fields comment and phrase elements
On Wed, 12 Jan 2000, Peter Radcliffe wrote:

> Someone has actually written a regexp to interpret email addresses
> properly. I think it was included in the ORA regexp book.


Sort of properly. It doesn't actually match every legal address.

> It's half a page long,


Much longer. It is a Perl script that *generates* a regular expression.
I use the generated expression as one of the tests for PCRE. It is about
10K long (though it has lots of white space and comments in it).

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.