PHP-Code: $PotM_temp = preg_replace ('/(.*)<!--PotM-Begin-->/Ui', '', $test); Perl-Regexps kann man auf ungreedy schalten, dann matchen sie so wenig wie möglich.
$PotM_temp = preg_replace ('/(.*)<!--PotM-Begin-->/Ui', '', $test);
Foren-Regeln