note 78690 deleted from function.preg-replace by danbrown

From: Date: Fri, 28 Nov 2008 19:47:14 +0000
Subject: note 78690 deleted from function.preg-replace by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147139@lists.php.net to get a copy of this message
Note Submitter: Santosh Patnaik ---- @giel dot berkers Use the 'PCRE_DOTALL' ('s') option so that the '.' covers newline characters: $code = preg_replace('/\/\*.*\*\//ms', '', $code);

« previous php.notes (#147139) next »