Neos.Neos/Classes/Validation/Validator/HostnameValidator.php
protected function isValid($hostname)
    {
        $pattern = '/(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)*(?!-)[a-zA-Z]{2,63}(?<!-)$)/';

        if ($this->options['ignoredHostnames']) {
            $ignoredHostnames = explode(',', $this->options['ignoredHostnames']);
            if (in_array($hostname, $ignoredHostnames)) {
                return;
            }
        }

        if (!preg_match($pattern, $hostname)) {
            $this->addError('The hostname "%1$s" was not valid.', 1415392993, [$hostname]);
        }
    }
protected function isValid($hostname)
    {
        $pattern = '/(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)*(?!-)[a-zA-Z]{2,63}(?<!-)$)/';

        if ($this->options['ignoredHostnames']) {
            $ignoredHostnames = explode(',', $this->options['ignoredHostnames']);
            if (in_array($hostname, $ignoredHostnames)) {
                return;
            }
        }

        if (!preg_match($pattern, $hostname)) {
            $this->addError('The hostname "%1$s" was not valid.', 1415392993, [$hostname]);
        }
    }
protected function isValid ( $ hostname ) { $ pattern = '/(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)*(?!-)[a-zA-Z]{2,63}(?<!-)$)/' ; if ( $ this -> options [ 'ignoredHostnames' ] ) { $ ignoredHostnames = explode ( ',' , $ this -> options [ 'ignoredHostnames' ] ) ; if ( in_array ( $ hostname , $ ignoredHostnames ) ) { return ; } } if ( ! preg_match ( $ pattern , $ hostname ) ) { $ this -> addError ( 'The hostname "%1$s" was not valid.' , 1415392993 , [ $ hostname ] ) ; } }
Validates if the hostname is valid.

@param mixed $hostname The hostname that should be validated
@return void
Validates if the hostname is valid .