[REBOL] Re: Shutting off parse features
From: gscottjones::mchsi::com at: 8-Mar-2002 15:43
From: "Terry Brownell"
> When parsing a string such as {Hello world, "this to" is an example;}
parse will remove the comma, and the semi... and takes anything within
quotes as a single value.
> Sometimes I just want to parse spaces so we get...
> ["Hello" "world," "this" "to" "is" "an" "example;"]
You make a good point, and as far as I can there is no easy way to do this
without using a "rule". Here is a quick and dirty work-around, in case it
proves useful for a specific problem:
a: {Hello world, "this to" is an example;}
parse/all trim/with a {"} " "
; yields ["Hello" "world," "this" "to" "is" "an" "example;"]
--Scott Jones