Hi, so first of all, I'm sorry for my bad english. I'll try to write as better as I can, but I think it will be readable ;)
So, this is 3 code unsing eregi_replace, but they dont work as well... If some one can give me a help, it's will be great. Many thx ! /******************** code ********************/ /* transform [color=FFFFFF]colored text[/color] to <font color="FFFFFF">colored text</font> */ $message = eregi_replace ("[color=(.*)](.*)[/color]","<font color='\\1'>\\2</font>",$message); /* transform [url=xxx]link![/url] to <a href="xxx">link!</a> */ $message = eregi_replace ("[url=(.*)](.*)[/url]","<A HREF=\"\\1\" TARGET=\"blank\">\\2</A>",$message); /* transform [b]big text[/b] to <b>big text</b> */ $message = eregi_replace (".*([b]).*([/b]).*","\\1<b>\\2</b>\\3",$message); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php