Quote:
Originally Posted by kazymjir
Code:
<?php
$str = "Remove this [tags]amateur, anal, teen,etc[/tags] stuff out of here!";
$regexp = "#\[tags\](.*?)\[/tags\]#is";
echo preg_replace($regexp, "", $str);
?>
|
I did not test this, but looks good to me.
I would also check out the explode() function after this and split it up using the comma delimiter into an array so you could then add each individual tag into a normalized DB.