Hi Chuck,

I'm just going to point you in the right direction, without giving you a
precise answer, as I believe
 everyone who wants to get the most out of REBOL needs to take the time to
learn the power of Parse.

So your answer lies in here
http://www.rebol.com/user-guide/parse.html


And here's a hint

data: copy ""
page: read bigpage.html#section1
parse page [skip thru "<!-- content block A -->" copy data to "<!--end
content block A -->"]
write/append destination1.html  data

Cheers,

Allen K



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 29 October 1999 5:11 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Extraction
>
>
> Howdy,
>    I'm trying to figure out how to extract blocks from one file into
> their own respective pages. Here's what I'm trying with no success:
> write/append destination1.html read bigpage.html#section1
> write/append destination1.html read bigpage.html#section2
> write/append destination1.html read bigpage.html#section3
> write/append destination2.html read bigpage.html#section1
> write/append destination2.html read bigpage.html#section2
> etc...
>    Essentially, I'm trying to extract all content blocks
> (including the comments) from bigpage.html to destination(number).html:
> <!-- content block A -->
> some content
> some more
> and last
> <!-- end content block A -->
> <!-- content block B -->
> some more content, but different
> some more
> <!-- end content block B -->
> etc...
>    My bigpage.html file has about 180 content blocks, and those
> ~180 content blocks need to be extracted to 12 different
> destination pages.
>    As always, I've consulted the trinity and tried to hack this
> before asking for your help. Thank you for any help in advance.
>
> Peace,
> Chuck
> [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> This message has been posted from Mail2Web (http://www.mail2web.com/)
> Web Hosting for $9.95 per month! Visit: (http://www.yourhosting.com/)
> ---------------------------------------------------------------------
>
>

Reply via email to