preg_replace (again)

From: Date: Wed, 20 Sep 2006 02:41:43 +0000
Subject: preg_replace (again)
Groups: php.general 
Request: Send a blank email to php-general+get-241959@lists.php.net to get a copy of this message
Hi group, I know I am a little bit stupid when it comes to actually figuring out how to use the preg_match and preg_replace. This is what I am facing: A string like this: This is some _color:pink_ colored text _color_ that I want to transfer Should convert to: This is some <font color="pink">colored text</font> that I want to transfer Anyone who see a simple solution to this? Right now I have created an ugly script that do the same thing, but I want to start to learn and use preg_match. Thanks. /Peter www.lauri.se <http://www.lauri.se/> - Personal web site www.dwsasia.com <http://www.dwsasia.com/> - Company web site

« previous php.general (#241959) next »