protected function filterRegexp($field, $details, $label, $message) {
        if (preg_match($details['expression'], $this->getValue($field))) {
            return true;
        }
        throw new \Exception($message ? $message : $this->translate("Doesn't match expression!"));
    }
protected function filterRegexp($field, $details, $label, $message) {
        if (preg_match($details['expression'], $this->getValue($field))) {
            return true;
        }
        throw new \Exception($message ? $message : $this->translate("Doesn't match expression!"));
    }
protected function filterRegexp ( $ field , $ details , $ label , $ message ) { if ( preg_match ( $ details [ 'expression' ] , $ this -> getValue ( $ field ) ) ) { return true ; } throw new \ Exception ( $ message ? $ message : $ this -> translate ( "Doesn't match expression!" ) ) ; }
Checks to see if matches the given expression
@param string $field
@param string [string] $details
@param string $label
@param string $message
@return boolean
@throws \Exception
Checks to see if matches the given expression