I have a variable $text, with the value:
...
[one_fourth]
[quote autor="Someone"]
"This is a quote"
[/quote]
[/one_fourth]
...
I want to replace/delete everything between “[quote” and “[/quote]” including “[quote” and “[/quote]”. This is what I tried:
$text = preg_replace("/\[quote.*\[\/quote\]/", '', $text);
But I had no success. How do I manage this?
Thank you,
dee
this works
you have to tell php that the
.has to match line breaks (parametersafter the closing/)