Welcome to WebmasterWorld Guest from 18.104.22.168
$patterns = "/\[.+\]/i";
$replacements = "";
$postText = preg_replace($patterns, $replacements, $postText);
However when running into the following it will match the entire string below (and thereby remove it):
Instead it should have matched tag1 then tag2 then... and so on.
Any input on what I can do to accomplish this without trying to match each individual tag?
Thanks in advance.