Re: ereg_replace

From: Date: Tue, 01 Jul 2003 14:13:41 +0000
Subject: Re: ereg_replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153559@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? \n is the newline character, making the string apear to be multiple lines see the thread "[PHP] multi line regular expression?" and see if that helps you any. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Thanks, Dean E. Weimer http://www.dwiemer.org/ dweimer@dweimer.org

« previous php.general (#153559) next »