hi,php-general,winst0n I'm from china,my English is not very good,too. Here's some example,perhaps it will help you a little.
$post =str_replace("[b]","<b>",$post); $post =str_replace("[/b]","</b>",$post); $post = eregi_replace("\\[hr=([^\\[]*)\\]","<hr width=\\1 align=left>",$post); $post=eregi_replace("\\[swf\\](.+\.swf)\\[/swf\\]","<PARAM NAME=PLAY VALUE=TRUE><PARAM NAME=LOOP VALUE=TRUE><PARAM NAME=QUALITY VALUE=HIGH><embed src=\"\\1\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/indexcgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"580\" height=\"400\"></embed> <a href=\"\\1\" target=_blank>  左键全屏观赏</a>",$post); poetbox [EMAIL PROTECTED] 2003-06-09 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php