Thanks Andrew... but, no, parse/all isn't the solution. It specifically has
to do with presence of quote marks in the string being parsed. Seems to
confuse REBOL by transforming what's between (or just after) the quote
mark(s) somehow.
In fact, in my application I DID use 'parse/all, just didn't include that in
the examples here. Here's a demo of it failing, too, though:
>> x: input
this is a "test"
== {this is a "test"}
>> print mold parse/all x " "
["this" "is" "a" "test"]
Replace the " mark(s) (in the input string) by any other character, and all
works as expected! Eg.,
>> x: input
this is a :test:
== "this is a :test:"
>> print mold parse x " "
["this" "is" "a" ":test:"]
It really doesn't have to do with parsing on " " either... in actuality, I
was parsing on ":" in my application (a big part of the IRC protocol). I
just used " " here for simplicity and clarity.
>> x: input
:this is a :"test" :::
== {:this is a :"test" :::}
>> print mold parse/all x ":"
["" "this is a " "test" " " "" ""]
Lost the quotes around 'test' again!
Russ
-------------------------------------
At 12:41 AM 10/12/99 +0000, you wrote:
>I don't have time to try it out, but might parse/all be useful in this
situation? I'd hope that it would.
>
>--
>Andrew Grossman
>http://web.dartmouth.edu/~grossman/pgp.html
>
>--- You wrote:
>
>
>I ended up going through some contortions of replacing the quote marks with
>"special symbols" (unprintable control characters), parsing the string, and
>then replacing them. But I would like to understand WHY this happens... or
>if I've per chance uncovered a bug in REBOL?
>--- end of quote ---
>
>
>