/ Published in: PHP
Expand |
Embed | Plain Text
$validator = new Zend_Validate_Regex('/([a-fA-F0-9]{2}[:|\-]?){6}/'); $valid = $validator->isValid($mac);
You need to login to post a comment.
gpupo on 10/14/09
1 person have marked this snippet as a favorite
$validator = new Zend_Validate_Regex('/([a-fA-F0-9]{2}[:|\-]?){6}/'); $valid = $validator->isValid($mac);
You need to login to post a comment.