I am trying to setup a regex that will detect [quote]???[/quote] and will remove it.
This is what I have but it is not working:
$post[\'body\'] = pre
Just figured out my own issue.
$post['body'] = preg_replace("/\[quote\](.+?)\[\/quote\]/is", '', $post['body']); $body = trim(rtrim($post[0]['body']));
$post['body'] = preg_replace("/\[quote\](.+?)\[\/quote\]/is", '', $post['body']);
$body = trim(rtrim($post[0]['body']));