3 ms·
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.
- deleted 18y ago[deleted]
- crazyirish 18y agoI 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.
- oldgregg 18y agoGood 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?).
- Flemlord 18y agoUpdate 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 http://www.softwarecompany.com/dotnet/netaddress.htm Plus, it's made by a company called "Software Company". That can't be good.
- Flemlord 18y agoFinal 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.
- Flemlord 18y agoFinal Update: I eventually broke down and wrote the parsers myself. It took me three days, complete with a hundred-odd test cases.