static function HexRGB($noHash = false, $errorlLabelPrefix = '', $trimValue = true)
    {
        $regStart = $noHash ? '' : '#';
        return new self("/^" . $regStart . "[A-Fa-f0-9]{6}$/", $errorlLabelPrefix, $trimValue);
    }
static function HexRGB($noHash = false, $errorlLabelPrefix = '', $trimValue = true)
    {
        $regStart = $noHash ? '' : '#';
        return new self("/^" . $regStart . "[A-Fa-f0-9]{6}$/", $errorlLabelPrefix, $trimValue);
    }
static function HexRGB ( $ noHash = false , $ errorlLabelPrefix = '' , $ trimValue = true ) { $ regStart = $ noHash ? '' : '#' ; return new self ( "/^" . $ regStart . "[A-Fa-f0-9]{6}$/" , $ errorlLabelPrefix , $ trimValue ) ; }
Reg Exp validator for six characters rgb color hex codes
@param boolean $noHash True if no hash shall be prefixed (default=false)
@param string $errorlLabelPrefix The prefix for errors
@param boolean $trimValue True if value shall be trimmed before validation (default=true)
@return RegExp Returns a validator for RGB colors written like #a0b1c2, or a0b1c2 if noHash is true
Reg Exp validator for six characters rgb color hex codes