Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Parse: Splitting headache

From: rotenca:telvia:it at: 19-Feb-2003 0:45

Hi,
> If I swap the quotes around, I get a different result.... > > s2: "one {two three} four" > parse s2 " " > == ["one" "{two" "three}" "four"] > > ....I've now got four strings, not three > > I'd like both s1 and s2 to return me three strings. And I've failed to find > the secret of making parse do that..
Rebol does not support {} strings inside "" strings, but only ^" strings You should use one of these syntax: "a ^"b^" c" {a "b" c} {a ^"b^" c} You need a specific parse rule for: "a {b} c" --- Ciao Romano