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

[REBOL] Parse: Splitting headache

From: sunandadh::aol::com at: 18-Feb-2003 15:13

If I've got a string with an inner string like this: s1: {one "two three" four} then parse correctly (in my eyes) splits it into three strings: parse s1 " " == ["one" "two three" "four"] 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.. Any ideas? Thanks, Sunanda.