note 37072 added to function.preg-match-all

From: Date: Sat, 01 Nov 2003 17:17:38 +0000
Subject: note 37072 added to function.preg-match-all
Groups: php.notes 
Request: Send a blank email to php-notes+get-59638@lists.php.net to get a copy of this message
If you wish to break down all inner tags from a source code like < div >text< a href=foo>foo< /a >text< /div > into separate array elements try: preg_match_all ("/(<([\w]+)[^>]*>)([^<]*)(<\/\\2*>)/", $data, $matches) Rgds. ---- Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37072 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37072&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37072&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59638) next »