$text = preg_replace("/-rick-/is","<bgsound src=\"/rick.mid\"/><img src=\"/smilies/rick.gif\" alt=\"\"/> ",$text);