corrected regexp to detect domain name