public function Check($value)
    {
        if ($this->trimValue)
            $value = trim($value);
        $result = array();
        if (!preg_match($this->pattern, $value))
            $this->error = self::NoMatch;
        
        return $this->error == '';
    }
public function Check($value)
    {
        if ($this->trimValue)
            $value = trim($value);
        $result = array();
        if (!preg_match($this->pattern, $value))
            $this->error = self::NoMatch;
        
        return $this->error == '';
    }
public function Check ( $ value ) { if ( $ this -> trimValue ) $ value = trim ( $ value ) ; $ result = array ( ) ; if ( ! preg_match ( $ this -> pattern , $ value ) ) $ this -> error = self :: NoMatch ; return $ this -> error == '' ; }
Checks the value against the pattern of this reg exp validator
@param string $value
@return bool
Checks the value against the pattern of this reg exp validator