<?php $str = " \\begin{verbatim} dupa zbita \\end \\end{verbatim} I chuj!!! \\end{verbatim}"; $str = preg_replace('/\\\\begin\s*\{verbatim\}.*\\\\end\s*\{verbatim\}/', 'VERBATIM', $str); echo $str;
You have javascript disabled. You will not be able to edit any code.