Is there a library or common heuristic for parsing whois results programatically? I'm working on a signup form for an ISP, and they'd like to be able to check for domain name availability during the signup process.
It seems like there's a lot of variation in whois results from the different top level domains
Not found: sdfasdfasdfsdfds.us
No match for "SDFASDFASDFSDFDS.COM".
Looking specifically for PHP, but a library in any language would do.