public function placeholder(string $variable, string|array $regexp): self
    {
        if ($this->asRoute) {
            $this->routes[$this->defaultIndex]['placeholders'][$variable] = $regexp;
        } elseif (-1 === $this->defaultIndex && empty($this->groups)) {