$ perl -wE' $s = q{anfang ende}; $s =~ s/(<\?php.*?\?>)/ /gsi; say $s;' anfang ende $ perl -wE' $s = q{anfang ende}; $s =~ s/(<\?php.*?\?>)/ /gsi; say $s;' anfang ende