[REBOL] Re: brainfart parse problem
From: timewarp:sirius at: 6-Jun-2001 14:12
this is kind of what i want, but the "valid"s
aren't individual characters, they are a series
of characters, so doing a charset is out. how
would i get the same effect given that the "z"
and "y" were actually "zyx" and "yza"?
cheerfulness,
-----EAT
Ladislav Mecir wrote:
> valid: complement charset "xz"
> parse "x .... ab z cd y" [thru #"x" copy a [any valid] to end] ; == true
> a ; == " .... ab "
>
> ----- Original Message -----
> From: Erin Thomas <[timewarp--sirius--com]>
> To: REBOL List <[rebol-list--rebol--com]>
> Sent: Wednesday, June 06, 2001 11:15 AM
> Subject: [REBOL] brainfart parse problem
>
> >
> > okay:
> >
> > >> rule: [thru "x" copy a [ opt to "y" | to "z"]]
> > == [thru "x" copy a [opt to "y" | to "z"]]
> > >> parse "x .... ab z cd y" rule
> > == false
> > >> a
> > == " .... ab z cd "
> >
> > now... how do i work the rule so it will stop at "z"
> > if "z" happens to be before "y"?
> >
> > thanks in advance.
> >
> > cheerfulness,
> >
> > -----EAT
> >
> > --
> > Erin A. Thomas --- == --- (707) 463-8578
> > ---- www.mochinet.com ----
> > ------
> > --
> > To unsubscribe from this list, please send an email to
> > [rebol-request--rebol--com] with "unsubscribe" in the
> > subject, without the quotes.
> >
> >
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Erin A. Thomas --- == --- (707) 463-8578
---- www.mochinet.com ----