I have a string in $body that looks like this:
<td style="vertical-align: top; border: 1px solid gray;">[COMMENT2]</td>
I would like to replace the token [COMMENT2] with the word "None" using something this:
$body = preg_replace('\[.*\]', 'None', $body);
What am I missing?