Hi there, just a quick one really.
I am using the following code to put the text between [ quote] and [ /quote] into a new table cell.
It works all fine, however it still outputs the [ quote] and [ /quote] at the beginning and end of the table.
How can i modify this script to only echo what is between the two?
$output = preg_replace( '/\[ quote\]((.|\s)*?)\[\/quote\]/i', '<table border="0" cellpadding="0" cellspacing="0" bgcolor="#d0ccd0" width="100%"><tr><td width="100%" bgcolor="#354463" class="infohead" style="vertical-align: top; border: 1px solid #000000; padding: 2;">\\0</td></tr></table>', $output );
Thanks.