Forum Moderators: coopster
$patterns[0] = "/\[.+\]/i";
$replacements[0] = "";
$postText = preg_replace($patterns, $replacements, $postText);
However when running into the following it will match the entire string below (and thereby remove it):
[tag1][tag2][/tag2][/tag1]
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.