lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hasan Diwan" <hasan.di...@gmail.com>
Subject Re: EMAIL ADDRESS: Tokenize (i.e. an EmailAnalyzer)
Date Sat, 29 Jul 2006 06:18:31 GMT
Michael:

On 7/28/06, Michael J. Prichard <michael_prichard@mac.com> wrote:
> Howdy....not sure if anyone else wants this but here is my first attempt
> at writing an analyzer for an email address...modifications, updates,
> fixes welcome.

Why reinvent the wheel? See
http://java.sun.com/products/javamail/javadocs/javax/mail/internet/InternetAddress.html#parse(java.lang.String)
and use as:

InternetAddress valid = InternetAddress.parse(string)[0]; // far
simpler than rewriting it

-- 
Cheers,
Hasan Diwan <hasan.diwan@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message