string preg_replace spoiler spoiler sui div class spoiler span class s

1
$string = preg_replace("@\[spoiler=([^\[\]]+?)\](.+?)\[\/spoiler\]@sui", "<div class='spoiler'><span class='spName'>$1</span><div class='content'>$2</div></div>", $string);