Re: Links

From: Date: Wed, 05 Sep 2001 19:40:47 +0000
Subject: Re: Links
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-66089@lists.php.net to get a copy of this message
@ 6:42:33 AM on 9/5/01, * R&zE: wrote: > 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 --- Another option would be to use Snoopy's fetchlinks(): <http://snoopy.sourceforge.net/> It's not perfect though.. -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies.

« previous php.general (#66089) next »