function ValidarKey($key) { return preg_match("/([\w\-]{4}\-[\w\-]{4}\-[\w\-]{4}\-[\w\-]{4}\-[\w\-]{4})/",trim($key)); }