RE: [PHP] Need help with RegEx

2006-12-15 Thread Richard Lynch
> inside > these tags using regex? > > Much appreciated, > > B > >> -Original Message- >> From: Michael [mailto:[EMAIL PROTECTED] >> Sent: Monday, December 11, 2006 6:59 AM >> To: Anthony Papillion >> Cc: php-general@lists.php.net >>

RE: [PHP] Need help with RegEx

2006-12-12 Thread Michael
At 04:56 AM 12/12/2006 , Ford, Mike wrote: >On 11 December 2006 19:43, Michael wrote: > >> At 08:29 AM 12/11/2006 , Brad Fuller wrote: >> > >> > The example provided didn't work for me. It gave me the same >> > string without anything modified. >> >> You are absolutely correct, this is what I ge

RE: [PHP] Need help with RegEx

2006-12-12 Thread Ford, Mike
On 11 December 2006 19:43, Michael wrote: > At 08:29 AM 12/11/2006 , Brad Fuller wrote: > > > > The example provided didn't work for me. It gave me the same > > string without anything modified. > > You are absolutely correct, this is what I get for not > testing it explicitly :( My most sincer

RE: [PHP] Need help with RegEx

2006-12-11 Thread Michael
anyone have a working solution how we can get the text from inside >these tags using regex? > >Much appreciated, > >B > >> -Original Message- >> From: Michael [mailto:[EMAIL PROTECTED] >> Sent: Monday, December 11, 2006 6:59 AM >> To: Anthony Papillion >

RE: [PHP] Need help with RegEx

2006-12-11 Thread Brad Fuller
php.net > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Need help with RegEx > > If you didn't say "using regex" this is how I'd do it (untested, forgive > typos and such..ripped from some code I actively use and stripped down): > > > $_XML_RESPONSE_PARSE

RE: [PHP] Need help with RegEx

2006-12-11 Thread tg-php
If you didn't say "using regex" this is how I'd do it (untested, forgive typos and such..ripped from some code I actively use and stripped down): = = = Original message = = = The example provided didn't work for me. It gave me the same string without anything modified. I am also looking for

RE: [PHP] Need help with RegEx

2006-12-11 Thread Brad Fuller
tags using regex? Much appreciated, B > -Original Message- > From: Michael [mailto:[EMAIL PROTECTED] > Sent: Monday, December 11, 2006 6:59 AM > To: Anthony Papillion > Cc: php-general@lists.php.net > Subject: Re: [PHP] Need help with RegEx > > At 01:02 AM 12

Re: [PHP] Need help with RegEx

2006-12-11 Thread Michael
I just realized I neglected to explain a couple of things here, sorry... My method will only work for the FIRST occurrence of the div tag pair in $source_html. The reason this method works is that you are telling preg_replace to replace everything that matches the match pattern, with just what

Re: [PHP] Need help with RegEx

2006-12-11 Thread Michael
At 01:02 AM 12/11/2006 , Anthony Papillion wrote: >Hello Everyone, > >I am having a bit of problems wrapping my head around regular expressions. I >thought I had a good grip on them but, for some reason, the expression I've >created below simply doesn't work! Basically, I need to retreive all of

Re: [PHP] Need help with RegEx

2006-12-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-11 02:02:46 -0600: > I am having a bit of problems wrapping my head around regular expressions. I > thought I had a good grip on them but, for some reason, the expression I've > created below simply doesn't work! Basically, I need to retreive all of the > text betwe

Re: [PHP] Need help with RegEx

2006-12-11 Thread T . Lensselink
I'm no regex guru but something goes wrong here. First of you miss the second parameter in preg_match int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] ) If you need the text from two unique tags it should not be to hard: $test = "THIS IS A TEST";

Re: [PHP] Need help with RegEx

2006-12-11 Thread Børge Holen
explode it I'm having quite the difficulty to comprehend the regexp myself, but as a training, go ahead. On Monday 11 December 2006 09:02, Anthony Papillion wrote: > Hello Everyone, > > I am having a bit of problems wrapping my head around regular expressions. > I thought I had a good grip on th

[PHP] Need help with RegEx

2006-12-11 Thread Anthony Papillion
Hello Everyone, I am having a bit of problems wrapping my head around regular expressions. I thought I had a good grip on them but, for some reason, the expression I've created below simply doesn't work! Basically, I need to retreive all of the text between two unique and specific tags but I do