Hi,
I have problems when replacing text within a string with preg_replace().
The code is like
$old_string='1 [snip] 2 [/snip] 3 [snip] 4 [/snip] 5';
$new_string = preg_replace("/[snip](.*)[\/snip]/i", "",$old_string);
I expected it to output "1 3 5", but instead it $new_string is "1 5"
I have been searching for this problem quite a while now, but din't find anything.
Any help is appreciated, thanks