public function is($pattern)
    {
        if ($this->toString() === $pattern) return true;
        $quotedPattern = preg_quote($pattern, $this->regexDelimiter);
        $replaceWildCards = str_replace('\*', '.*', $quotedPattern);
        return $this->regexMatch('^'.$replaceWildCards.'\z');
    }