Will Jeff's approach work if the paragraphs contain multiple periods?
Russell [EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 20, 2000 1:41 PM
Subject: [REBOL] parse or Re:(3)
>
>
> Howdy, Ryan:
>
> > > paragraphs: {First paragraph.^/Second "paragraph."^/Third paragraph.}
> > > parse paragraphs [some [thru {.^/} | thru {."^/} | thru "." end]]
> >
> > This returns "true"
>
> Yep, that means that PARSE successfully made it through the
> whole string.
>
> To break up your paragraphs, copy out the parts thru each
> paragraph ending, like this:
>
> pb: copy []
> parse paragraphs [
> some [
> copy part [thru {.^/} | thru {."^/} | thru "." end]
> (append pb part)
> ]
> ]
>
> pb
> == ["First paragraph.^/" {Second "paragraph."
> } "Third paragraph."]
>
>
> > Sorry if I'm being a pain, but when I read the "parse
> > rules" documentation it doesn't make any sense to me. I
> > can't see the usefulness of returning "true" in this
> > situation.
>
> No pain whatsoever. I like trying to help.
>
> -jeff
>