And for something to show how this can work:

>> nonquote:  complement charset {"}
== make bitset! #{
FFFFFFFFFBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
}
>> parse-rule: [any [ copy non-quote-data some nonquote (print
non-quote-data) | {"} (print "a quote!") ]]
== [any [copy non-quote-data some nonquote (print non-quote-data) | {"}
(print "a quote!")]]
>> parse/all {one" two "three} parse-rule
one
a quote!
 two
a quote!
three
== true

Brett.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 23, 2000 12:21 PM
Subject: [REBOL] Describing a set of characters Re:


> Or...
>
>     nonquote:  complement charset {"}
>
> if you meant everything except standard quotations marks.
>
> -jn-
>
> [EMAIL PROTECTED] wrote:
> >
> > Hi folks,
> >
> > Hope you can help...
> >
> > I'm doing some parsing and want to match against any character except a
quote.
> >
> > Is there some charset magic where I can do this?
> >
> > Thanks in advance.
> >
> > Gavin.
>

Reply via email to