note 77386 added to function.preg-match-all

From: Date: Mon, 27 Aug 2007 19:01:19 +0000
Subject: note 77386 added to function.preg-match-all
Groups: php.notes 
Request: Send a blank email to php-notes+get-129838@lists.php.net to get a copy of this message
http://www.tellinya.com/art2/79/regexp-links-from-html A simple, still not short, function to extract hyperlinks from html along with attributes using some preg_match_all calls. It will also allow you to find those with rel=nofollow and verify your link exchanges for example. It also converts IMG alt attributes to text to place text instead of images inside links. Hope you have fun with it and, if bugs are found, notify me quickly so I can address them. I use this function and need it functional. PS: You can use this function as a basic regexp example. PHP & RegExp rule the world! ---- Server IP: 69.147.83.197 Probable Submitter: 81.196.77.248 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php Edit -- https://master.php.net/note/edit/77386 Del: integrated -- https://master.php.net/note/delete/77386/integrated Del: useless -- https://master.php.net/note/delete/77386/useless Del: bad code -- https://master.php.net/note/delete/77386/bad+code Del: spam -- https://master.php.net/note/delete/77386/spam Del: non-english -- https://master.php.net/note/delete/77386/non-english Del: in docs -- https://master.php.net/note/delete/77386/in+docs Del: other reasons-- https://master.php.net/note/delete/77386 Reject -- https://master.php.net/note/reject/77386 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129838) next »