Forumlar / Cotonti / Extensions / Function sed_cutpost?

musiconly
#11916 2009-04-30 16:14
# Trustmaster : Dirty trick:
else
{
    $text = preg_replace('#\[[^\]]+?\](.*?)\[/[^\]]+?\]#', '', $text);
    $text = preg_replace('#\[[^\]]+?\]#', '', $text);
}

Perfect! Thanks Trustmaster! :-)