Re: Hi I get some problems while using eregi_replace

From: Date: Mon, 09 Jun 2003 05:31:38 +0000
Subject: Re: Hi I get some problems while using eregi_replace
Groups: php.general 
Request: Send a blank email to php-general+get-150704@lists.php.net to get a copy of this message
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>&nbsp 左键全屏观赏</a>",$post);               poetbox         phplist@enorth.com.cn           2003-06-09

« previous php.general (#150704) next »