note 75138 added to function.preg-match

From: Date: Tue, 15 May 2007 00:40:58 +0000
Subject: note 75138 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-126589@lists.php.net to get a copy of this message
legolas558; You must add /mi to your parameters so it matches multi-line, otherwise it won't match. <?php // additional spacing added not to confuse markup highlighters preg_match_all('/<\\?'.'php.*\\?'.'>/mi', $content, $m); ?> (This regex matches all php parts to a string/file) ---- Server IP: 69.147.83.197 Probable Submitter: 76.80.37.39 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- https://master.php.net/note/edit/75138 Del: integrated -- https://master.php.net/note/delete/75138/integrated Del: useless -- https://master.php.net/note/delete/75138/useless Del: bad code -- https://master.php.net/note/delete/75138/bad+code Del: spam -- https://master.php.net/note/delete/75138/spam Del: non-english -- https://master.php.net/note/delete/75138/non-english Del: in docs -- https://master.php.net/note/delete/75138/in+docs Del: other reasons-- https://master.php.net/note/delete/75138 Reject -- https://master.php.net/note/reject/75138 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126589) next »