From: Simon W. <es...@ou...> - 2003-02-11 16:22:21
|
On Tue, 2003-02-11 at 16:09, Wizard wrote: > > A little more context ? What are you trying to DO ? > > > > I probably don't understand the requirement but from what you're saying: > > > > An email address arrives from somewhere > > It's checked for well-formedness > > It's compared to a list of regexes of known banned addresses > > It is accepted/rejected based on this > > I want it to be universal. For instance, how would you parse this: > *@*.aol.* > > into: > fr...@ao... > fr...@ma... > and > fr...@mi... > > It should match the first two, but not the last, because the DOMAIN in the > last is 'parliment', not 'aol'. I don't think you can do this programatically. Strictly speaking, aol.* should NOT match aol.co.uk. It;s only your semantic interpretation of the data that "knows" that aol.co.uk and aol.com are the same organisation. How do we know *programatically* that aol.parliament.uk is not part of AOL ? Simon. |