note 110135 added to function.preg-match-all

From: Date: Sun, 23 Sep 2012 07:40:45 +0000
Subject: note 110135 added to function.preg-match-all
Groups: php.notes 
Request: Send a blank email to php-notes+get-190969@lists.php.net to get a copy of this message
You must notice the text's charset. Example: <?php $url = 'http://news.sohu.com' ; $subject = file_get_contents( $url ) ; $pattern = '/<A href="(.*)" target=_blank>(.*)<\/A>/i' ; preg_match_all( $pattern , $subject , $matches , PREG_PATTERN_ORDER ) ; print_r ( $matches ) ; ?> Out: no value. ---- Server IP: 69.147.83.199 Probable Submitter: 118.112.180.102 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php Edit -- https://master.php.net/note/edit/110135 Del: integrated -- https://master.php.net/note/delete/110135/integrated Del: useless -- https://master.php.net/note/delete/110135/useless Del: bad code -- https://master.php.net/note/delete/110135/bad+code Del: spam -- https://master.php.net/note/delete/110135/spam Del: non-english -- https://master.php.net/note/delete/110135/non-english Del: in docs -- https://master.php.net/note/delete/110135/in+docs Del: other reasons-- https://master.php.net/note/delete/110135 Reject -- https://master.php.net/note/reject/110135 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190969) next »