[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs ) ) { return $regs['domain']; } return false; } /* End Misc Functions */