<?php $content = '<!--TAG_INI-->' . str_repeat("a\n", 50000) . '<!--TAG_END-->'; $pattern = "/<!--TAG_INI-->(.|\n)*?<!--TAG_END-->/"; $content = preg_replace($pattern, 'foo', $content); var_dump($content);
You have javascript disabled. You will not be able to edit any code.