Re: Links

From: Date: Wed, 05 Sep 2001 10:42:33 +0000
Subject: Re: Links
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66025@lists.php.net to get a copy of this message
<Original message> From: Kunal Jhunjhunwala <kunal@getmonked.net> Date: Wed, Sep 05, 2001 at 03:49:49PM +0530 Message-ID: <056a01c135f4$4e7b99a0$0301a8c0@CONFUSED> Subject: [PHP] Links > Hey, > This is the second time I am asking about this. I havent been able to solve > the problem. I am trying to get all the information between the <a> </a> > tags. How can i do this? I couldnt figure the regex out :( > Regards, > Kunal Jhunjhunwala </Original message> <Reply> Here you are! This regex gets you everything between all <A> and </A> tags. Case insensitive, including embedded HTML-tags etc. Try it and let me know if this is what you need. --- PHP code --- preg_match_all ("/<a[^>]*>(.+)<\/a>/imU", $StringToSearch, $matches); print_r ($matches); --- End of PHP code --- </Reply> -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.general (#66025) next »