text->indexOf('~~'); if ($pos === \false) return; \preg_match_all('/~~[^\\x17]+?~~(?!~)/', $this->text, $matches, \PREG_OFFSET_CAPTURE, $pos); foreach ($matches[0] as $_4b034d25) { list($match, $matchPos) = $_4b034d25; $matchLen = \strlen($match); $endPos = $matchPos + $matchLen - 2; $this->parser->addTagPair('DEL', $matchPos, 2, $endPos, 2); $this->text->overwrite($matchPos, 2); $this->text->overwrite($endPos, 2); } } }