Better ignore my previous post on this subject!  I assumed you were trying
to create a block with each component one of the paragraphs, using the ^/ as
a separator.  But my stuff doesn't throw any light on that at all!

Please excuse my ineptness!

Russell [EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 20, 2000 1:54 PM
Subject: [REBOL] parse or Re:(2)


> Hi Ryan:  Here's a one liner that may help:
>
> >> st: "abcdef"
> == "abcdef"
> >> parse/all st "ed"
> == ["abc" "" "f"] ; An inclusive OR, I guess.
> >> parse/all st "gh"
> == ["abcdef"] ; No splitting as neither "g" nor "h" is present.
> >> parse/all st "gb"
> == ["a" "cdef"] ; Split at the single char that matched.
>
>
> Russell [EMAIL PROTECTED]
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 20, 2000 12:26 PM
> Subject: [REBOL] parse or Re:
>
>
> >
> >
> >        Howdy, Ryan:
> >
> > paragraphs: {First paragraph.^/Second "paragraph."^/Third paragraph.}
> > parse paragraphs [some [thru {.^/}  | thru {."^/} | thru "." end]]
> >
> >   -jeff
> >
> > > == {First paragraph.
> > > Second "paragraph."
> > > Third paragraph.}
> > > >> probe parse paragraphs [{.^/} | {."^/}]
> > > false
> > > == false
> > > >> probe parse paragraphs ({.^/} or {."^/})
> > > ** Script Error: Cannot use or~ on string! value.
> > > ** Where: ".^/" or {."
> > >
> > > So how DO I parse by a value OR another value?
> > >
> > > -Ryan
> >
> >
>

Reply via email to