Hi,
$tpl = preg_replace("/%content%.*%contentend%/", "wuha", $tpl);
works fine for %content% this is the content %contentend%
but not for
%content%
this is the content
%contentend%
I take it the .* doesn't include new line and carriage return. How do I fix this so that the above expression will work for really everything between %content% and %contentend%?
Thanks.
Steve