$seek = array("/^.*\[".$mod_options['code']."\]/", "/\[\/".$mod_options['code']."\].*$/"); $destroy = array("[".$mod_options['replace']."]", "[/".$mod_options['code']."]"); $poststring[] = preg_replace($seek, $destroy, $poststuff[pagetext]);