ホームページ >バックエンド開発 >PHPチュートリアル >preg_match 匹配mac地址解决方案
preg_match 匹配mac地址
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> $isMac = preg_match("/^[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}$/i", $mac);
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$isMac = preg_match("/00:e0:c2:e1:a3:85/i", $mac);