note 54366 added to function.preg-replace

From: Date: Fri, 01 Jul 2005 15:44:07 +0000
Subject: note 54366 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-91268@lists.php.net to get a copy of this message
Sometimes when you format your own code with the squared bracets [ and ] your code will contain new lines, but the (.*?) will not work because . (dot) accepts everything but a new line (talk about bad luck), you can add the new line manually like that ((.|\n)*?). It took me a while to figure it out without any experience. ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54366 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54366&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54366&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54366&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54366&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54366&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54366&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54366&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91268) next »