----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 06, 2000 3:01 AM Subject: [REBOL] parsing by period and newline Re: > > Howdy, Ryan: > > [. . .] > > > ;creates an undesirable result, as follows... > > > > make object! [ headline: "first headline" subheadline: "second > > headline" body: ["First paragraph here" "" "" "Then a second > > paragraph" " Another sentence" "" "" "A final paragraph" ""] ] > > > > ;For the "body" value, I would like the block to contain only > > individual paragraphs. Parsing by the following value (also > > above)... > > > You can always filter away empty strings from your body block: > > obj/body: difference [""] obj/body BIG BIG Caution with this method. If any strings have duplicates you will lose them too! d: difference/only ["^/" "<P>" "Tea for two, please." "<P>" "But you're alone now" "" "Tea for two, please." ][""] == ["^/" "<P>" "Tea for two." "But you're alone now"] ... See the second "<P>" is lost!! and looks likes it just tea for one now... Cheers, Allen K (*Slaps*) Jeff for the time lost when using his tip ;-) OK Jeff I know the chances of duplicates across paragraphs is slim, but there is still a chance and it is a hard thing to find when your code goes wrong.. > > That doesn't address your question about parse, but I'm running out > of time.. :) > > -jeff