Posted By

gpupo on 10/14/09


Tagged

validation zend


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

canberkol


Mac Address validation on Zend Validate with regex


 / Published in: PHP
 

  1. $validator = new Zend_Validate_Regex('/([a-fA-F0-9]{2}[:|\-]?){6}/');
  2. $valid = $validator->isValid($mac);

Report this snippet  

You need to login to post a comment.