Ereg: select all text between <BODY> </BODY> tags..

This is a discussion on Ereg: select all text between <BODY> </BODY> tags.. within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi yes it is possible. You can use ereg() to acoomplish this "Marco Snoek" <[mps]@DONT _ ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-29-2004
Hi Ho
 
Posts: n/a
Default Re: select all text between <BODY> </BODY> tags..

Hi
yes it is possible. You can use ereg() to acoomplish this

"Marco Snoek" <[mps]@DONT _
YOU^DARE%SEND/SPAM!!!@remove/this[@webmind.nl]@remove/this> wrote in message
news:401a3af6$0$314$e4fe514c@news.xs4all.nl...
> Hope you can help me with this one:
>
> Is it possible to select content between:
> <BODY OnLoad="setSettings(some,settings,seperated,by,com ma); ">
>
> and
>
> </BODY>
>
>
> Thanx in advance..
>
>
> M/\rco
>
>



Reply With Quote
  #2 (permalink)  
Old 01-30-2004
Marco Snoek
 
Posts: n/a
Default Ereg: select all text between <BODY> </BODY> tags..

Hope you can help me with this one:

Is it possible to select content between:
<BODY OnLoad="setSettings(some,settings,seperated,by,com ma); ">

and

</BODY>


Thanx in advance..


M/\rco


Reply With Quote
  #3 (permalink)  
Old 01-30-2004
Marco Snoek
 
Posts: n/a
Default Re: select all text between <BODY> </BODY> tags..

Uhm..

e.g. $content already contains the whole content-string...
So, the fopen part is already taken care of :-)

Marco


"Marco Snoek" <[mps]@DONT _
YOU^DARE%SEND/SPAM!!!@remove/this[@webmind.nl]@remove/this> schreef in
bericht news:401a3af6$0$314$e4fe514c@news.xs4all.nl...
> Hope you can help me with this one:
>
> Is it possible to select content between:
> <BODY OnLoad="setSettings(some,settings,seperated,by,com ma); ">
>
> and
>
> </BODY>
>
>
> Thanx in advance..
>
>
> M/\rco
>
>



Reply With Quote
  #4 (permalink)  
Old 01-30-2004
Marco Snoek
 
Posts: n/a
Default Re: select all text between <BODY> </BODY> tags..

Is this a joke ? :-)

How????



"Hi Ho" <studies@hotpop.com> schreef in bericht
news:j%rSb.27686$lt1.573797@wagner.videotron.net.. .
> Hi
> yes it is possible. You can use ereg() to acoomplish this
>
> "Marco Snoek" <[mps]@DONT _
> YOU^DARE%SEND/SPAM!!!@remove/this[@webmind.nl]@remove/this> wrote in

message
> news:401a3af6$0$314$e4fe514c@news.xs4all.nl...
> > Hope you can help me with this one:
> >
> > Is it possible to select content between:
> > <BODY OnLoad="setSettings(some,settings,seperated,by,com ma); ">
> >
> > and
> >
> > </BODY>
> >
> >
> > Thanx in advance..
> >
> >
> > M/\rco
> >
> >

>
>



Reply With Quote
  #5 (permalink)  
Old 01-30-2004
freebsd
 
Posts: n/a
Default Re: Ereg: select all text between <BODY> </BODY> tags..

Marco Snoek wrote:

> Hope you can help me with this one:
>
> Is it possible to select content between:
> <BODY OnLoad="setSettings(some,settings,seperated,by,com ma); ">
>
> and
>
> </BODY>


eregi("<body[^>]*>(.*)</body>",$content,$body_only);

Lee
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0