note 32664 deleted from function.preg-match-all by pollita
| From: | pollita@php.net | Date: | Wed, 04 Jun 2003 03:07:01 +0000 |
| Subject: | note 32664 deleted from function.preg-match-all by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49682@lists.php.net to get a copy of this message | ||
Note Submitter: blong@hdm.com
----
Here's how you get all the non-javascript links from an $html string...
$regex = "/<a\s(href=\"([^\"]*)\"|\\n|[^>])*>/";
preg_match_all($regex,$html,$matches);
$links = $matches[2];