src/MvcError.php
public function regex($val, $regex, $id, $msg) {
        if (preg_match($regex, $val) === 0) {
            $this->add($id, $msg);
            return false;
        }

        return true;
    }
public function regex($val, $regex, $id, $msg) {
        if (preg_match($regex, $val) === 0) {
            $this->add($id, $msg);
            return false;
        }

        return true;
    }
public function regex ( $ val , $ regex , $ id , $ msg ) { if ( preg_match ( $ regex , $ val ) === 0 ) { $ this -> add ( $ id , $ msg ) ; return false ; } return true ; }
Does a value match a given regex?
Does a value match a given regex?