Re: preg_match_all Help

From: Date: Fri, 12 Oct 2007 03:40:31 +0000
Subject: Re: preg_match_all Help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-263131@lists.php.net to get a copy of this message
admin@buskirkgraphics.com wrote:
I have tried this many way and for some reason I cannot pull content between the 2 pattern options. function pullchannel($document) {
                preg_match_all('/<div class="channel" [^<>]*>(.*)<div
class="channel" [^<>]*>/i',$document,$elements); $match = implode("\r\n",$elements[0]); $match = str_replace('"',"","$match"); return $match; } Give us and example of the input data. And tell us from that example, what it is you are expecting to extract from it.
Jim

« previous php.general (#263131) next »