Update whois.class.php

ereg to preg
Merge pull request #7 from dongww/patch-1

Update whois.class.php