Re: [PHP] extracting text - regex

2009-04-10 Thread Ashley Sheridan
On Wed, 2009-04-08 at 17:14 +0200, Merlin Morgenstern wrote: > > George Larson wrote: > > On Wed, Apr 8, 2009 at 9:13 AM, George Larson > > wrote: > > > >> I'm what you might consider rather green, myself. > >> I certainly wouldn't use this code for production but if you're just > >> debugging o

Re: [PHP] extracting text - regex

2009-04-08 Thread Merlin Morgenstern
George Larson wrote: On Wed, Apr 8, 2009 at 9:13 AM, George Larson wrote: I'm what you might consider rather green, myself. I certainly wouldn't use this code for production but if you're just debugging or something then how about something like this: ") !== FALSE) { $echo_output = TRUE; }

Re: [PHP] extracting text - regex

2009-04-08 Thread George Larson
On Wed, Apr 8, 2009 at 9:13 AM, George Larson wrote: > I'm what you might consider rather green, myself. > I certainly wouldn't use this code for production but if you're just > debugging or something then how about something like this: > > $handle = @fopen('page.htm', 'r'); > if ($handle

Re: [PHP] extracting text - regex

2009-04-08 Thread George Larson
I'm what you might consider rather green, myself. I certainly wouldn't use this code for production but if you're just debugging or something then how about something like this: ") !== FALSE) { $echo_output = TRUE; } if (strpos($eos,"<\div>") !== FALSE) { $echo_output = FALSE; }

Re: [PHP] extracting text - regex

2009-04-08 Thread Per Jessen
Merlin Morgenstern wrote: > Hello, > > I am trying read text out of a text that is inbetween two divs. > Somehow this should be possible with regex, I just can't figure out > how. > > Example: > > > bla blub > > > I would like to extract the text "bla blub" out of this example. > This migh

[PHP] extracting text - regex

2009-04-08 Thread Merlin Morgenstern
Hello, I am trying read text out of a text that is inbetween two divs. Somehow this should be possible with regex, I just can't figure out how. Example: bla blub I would like to extract the text "bla blub" out of this example. Has anybody an idea on how to do that? Is there a special php