Contributors
# Trustmaster : Dirty trick: else { $text = preg_replace('#\[[^\]]+?\](.*?)\[/[^\]]+?\]#', '', $text); $text = preg_replace('#\[[^\]]+?\]#', '', $text); }
else { $text = preg_replace('#\[[^\]]+?\](.*?)\[/[^\]]+?\]#', '', $text); $text = preg_replace('#\[[^\]]+?\]#', '', $text); }