Looking for regular expression to remove string delimited by double quotes " Hi, I have the a string similar to the following 08/06/2004 12:47 PM - CMDPHP: Poller[0] RRD: c:/rrdtool/rrdtool.exe raph - --imgformat=PNG --start=1091783220 --end=1091789220 --title="Titl e1" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-li mit=0 --units-exponent=0 COMMENT:"From 2004-08-06 11:07:00 To 2004-08-06 12:47\c" --vertical-label="" DEF:a="C\:\apache2\htdocs\cacti/rra/test1_ds1_12.rrd":ds1:AVERAGE DEF:b="C\:\apache2\htdocs\cacti/rra/test1_ds1_12.rrd":ds1:AVERAGE CDEF:cdefb=b,8,* LINE2:b#4444FF:"legend1" LINE2:cdefb#FFF200:"" I would like to remove COMMENT:"From 2004-08-06 11:07:00 To 2004-08-06 12:47\c" in this string I have tried with no success to find the regular expression combined with ereg_replace(" COMMENT: ......", "", $command_line); (The diffulty is there are spaces and the COMMENT is delimited by " ", and just that part must be removed, not the end of the line) Does anybody has an idea for this regular expression ? Any help would be appreciated. Thanks Didier -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php