/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$validator = new Zend_Validate_Regex('/([a-fA-F0-9]{2}[:|\-]?){6}/'); $valid = $validator->isValid($mac);
$validator = new Zend_Validate_Regex('/([a-fA-F0-9]{2}[:|\-]?){6}/'); $valid = $validator->isValid($mac);