Re: [PHP] preg_match_all Help

2007-10-12 Thread Al
m: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:41 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] preg_match_all Help [EMAIL PROTECTED] wrote: I have tried this many way and for some reason I cannot pull content between the 2 pattern options.

Re: [PHP] preg_match_all Help

2007-10-12 Thread Richard Heyes
[EMAIL PROTECTED] wrote: ... It would help to see the input text and to know exactly what you're trying to match. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing Lis

RE: [PHP] preg_match_all Help

2007-10-11 Thread admin
ge- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:41 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] preg_match_all Help [EMAIL PROTECTED] wrote: > I have tried this many way and for some reason > > I cannot pull conte

Re: [PHP] preg_match_all Help

2007-10-11 Thread Jim Lucas
[EMAIL PROTECTED] 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('/]*>(.*)]*>/i',$document,$elements); $match = implode("\r\n",$elements[0]); $match = str_rep

[PHP] preg_match_all Help

2007-10-11 Thread admin
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('/]*>(.*)]*>/i',$document,$elements); $match = implode("\r\n",$elements[0]); $match = str_replace('"',"","$match"); retu