regular expressions

From: Date: Sat, 18 Nov 2006 13:46:39 +0000
Subject: regular expressions
Groups: php.general 
Request: Send a blank email to php-general+get-244832@lists.php.net to get a copy of this message
Ok I seem to need to learn regular expressions more than anything. this is what im working on: ["desc"] = " <c> FFFFFF topic <c> 999999 rest of the text ", $string = preg_replace("/<c>\s\w[0-9A-F]+/","",$string); prints out: topic rest of the text ( with double spaces :(, I thought \s would fix that ) however how would I go on this: <font color="colorcode">topic</font> <font color="colorcode">rest of thetext</font> Almost anything I do with the above statement either throws me off with a modifier error or prints out what it should not --- Børge Kennel Arivene http://www.arivene.net ---

« previous php.general (#244832) next »