", "", $string); $string = str_replace("<", "", $string); $string = str_replace("\\", "", $string); if (preg_match("/(hex:\?)?([a-fA-F0-9]{1,2}(:|\s)){5}/", $string)) { $octet = ""; /* strip of the 'hex:' */ $string = eregi_replace("hex: ?", "", $string); /* split the hex on the delimiter */ $octets = preg_split("/\s|:/", $string); /* loop through each octet and format it accordingly */ for ($i=0;($i