src/Str.php
public function pregQuote(string $delimiter = ''): self
    {
        return new self(\preg_quote((string) $this, $delimiter), $this->encoding);
    }
public function pregQuote(string $delimiter = ''): self
    {
        return new self(\preg_quote((string) $this, $delimiter), $this->encoding);
    }
public function pregQuote ( string $ delimiter = '' ) : self { return new self ( \ preg_quote ( ( string ) $ this , $ delimiter ) , $ this -> encoding ) ; }
Quote regular expression characters

@param string $delimiter

@return self
Quote regular expression characters