Im trying to strip al text from a string, that contains BB quote blocks.
For instance ...
$string = "[quote=user on someday at sometime]quoted text[quote=user at someday at sometime]more text[/quote][/quote] unquoted text";
I need the output of that string, to only be "Unquoted Text" ...
Just the text at the end, thats not quoted should remain. Basically i need it to strip all text inside quote blocks, leaving the text that isnt in quote blocks, in this case "Unquoted text"
Ive tried ..
$row['message'] = ereg_replace("[(.*)]", "", $row['message']);
but if any other bbcode is in the string like say then it strips the entire string, even Unquoted text at the end, which is what im aiming for it to keep.
Please help me with this, thank you.