Welcome to WebmasterWorld Guest from 188.8.131.52
$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.