protected function assertArgumentValue($key, $regex, $value)
    {
        if (!preg_match('/^' . $regex . '$/i', $value)) {
            throw new RouteException(sprintf('Invalid value for argument "%s" in route "%s", got "%s" need "/^%s\$/"', $key, $this->pattern, $value, $regex));
        }
    }
protected function assertArgumentValue($key, $regex, $value)
    {
        if (!preg_match('/^' . $regex . '$/i', $value)) {
            throw new RouteException(sprintf('Invalid value for argument "%s" in route "%s", got "%s" need "/^%s\$/"', $key, $this->pattern, $value, $regex));
        }
    }
protected function assertArgumentValue ( $ key , $ regex , $ value ) { if ( ! preg_match ( '/^' . $ regex . '$/i' , $ value ) ) { throw new RouteException ( sprintf ( 'Invalid value for argument "%s" in route "%s", got "%s" need "/^%s\$/"' , $ key , $ this -> pattern , $ value , $ regex ) ) ; } }
Asserts argument value

@param string $key
@param string $regex
@param mixed  $value

@throws RouteException
Asserts argument value