ereg_replace

From: Date: Tue, 01 Jul 2003 10:29:02 +0000
Subject: ereg_replace
Groups: php.general 
Request: Send a blank email to php-general+get-153526@lists.php.net to get a copy of this message
I'm trying to replace singel line comment with empty string. tried ereg_replace("//.+\n",'',$string); but this replaces all text after //. anyone now what to do?

« previous php.general (#153526) next »