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

[REBOL] Re: Shutting off parse features

From: greggirwin:mindspring at: 8-Mar-2002 15:46

Hi Terry, << 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;"] >> This gets you close:
>> parse/all {Hello world, "this to" is an example;} " "
== ["Hello" "world," "this to" "is" "an" "example;"] To ignore the quotes, I think you'll need a real rule-set. --Gregg