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

[REBOL] Another question

From: stopm::mediaone::net at: 14-Feb-2002 12:46

I'm trying to figure out parse... how, for instance, would I use a parse expression to break some text into words, which are grouped with quotation marks (so you could make "foo bar" one word), but quotation marks preceded by a backslash are treated as normal text? Hello world, I said -> ["Hello world", "I", "said"] Also, how would I match on a left bracket, any member of a block, and then a right bracket? Here's a pseudocode example: [ FOLLOWED BY ("red" OR "green" OR "blue") FOLLOWED BY "]" Alex