Here is my text:
$msg_text = '[quote]TEXT[/quote]';
and my preg_replace:
$msg_text = preg_replace('#\[quote\](.*?)\[\/quote\]#is', '"$1"'."\r\n", $msg_text);
And it works fine. But what when my text is looking like that:
$msg_text = '[quote]TEXT [quote]TEXT[/quote][/quote]';
?? My preg_replace doesn't work on this example. How I can replcace this text in all instances ?