Posted by RageARC on 09/24/07 17:54
I have:
$string = "text ... [COLOR]FFFFFF[/COLOR] text... ";
$replacement = "<div id='THECOLOR'>THECOLOR</div>";
Where THECOLOR has to be the color the user inserted inside the tags.
I could use preg_replace, but I don't know regex. Can you help me?
[Back to original message]
|