News for hackers. Stuff that matters.

Ask HN: Name/address/e-mail/phone parsing?

I have a block of text that contains an address, city, state and zip. I need to break it out into separate fields.

I know this has been done 1000x times before but I can't find a decent library. Anybody know of one? Free is preferable but I'd be happy to buy a component as long as it's royalty-free.

I also need parsers for names, e-mail and phone numbers. Any help is appreciated.

( 5 comments | 2 points | on HN )
Re:Ask HN: Name/address/e-mail/phone parsing? by oldgregg on Friday October 17, 2008 @02:32PM (#335853)
Good question. I've used everything from expensive mail house software to hacked scripts, I still haven't found anything very versatile... maybe hire some Indians (or mturk?).
Re:Ask HN: Name/address/e-mail/phone parsing? by Flemlord on Friday October 17, 2008 @02:38PM (#335859)
Update on my search: I'm currently looking at something called NetAddress. It seems to work well but costs $500. Probably better than writing it myself but I'm not eager to cough up that much cash.

http://www.softwarecompany.com/dotnet/netaddress.htm

Plus, it's made by a company called "Software Company". That can't be good.

Re:Ask HN: Name/address/e-mail/phone parsing? by Flemlord on Saturday November 15, 2008 @01:10AM (#365173)
Final Update: I eventually broke down and wrote the parsers myself it ended up taking me about three days, complete with a hundred-odd test cases.
Re:Ask HN: Name/address/e-mail/phone parsing? by Flemlord on Saturday November 15, 2008 @01:14AM (#365176)
Final Update: I eventually broke down and wrote the parsers myself. It took me three days, complete with a hundred-odd test cases.
Re:Ask HN: Name/address/e-mail/phone parsing? by crazyirish on Friday October 17, 2008 @12:10PM (#335722)
I recall doing this with a bunch of horrible regexs a few years ago when I needed something pretty quickly. Let me know what you find.