1 | <?php |
||
25 | class HostName extends RegExp |
||
26 | { |
||
27 | const REGEXP = '/^[a-z0-9][a-z0-9\-_]{0,61}[a-z0-9](\.[a-z0-9\-_]{0,63})*\.[a-z]{2,6}$/i'; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | * |
||
32 | * @see \Mcustiel\SimpleRequest\Validator\RegExp::setSpecification() |
||
33 | */ |
||
34 | 81 | public function setSpecification($specification = null) |
|
38 | |||
39 | 82 | public function validate($value) |
|
46 | } |
||
47 |