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

[REBOL] Re: Another question

From: stopm:mediaone at: 14-Feb-2002 16:44

Do you need to escape the quotes (i.e. is there source data that contains
> them)? If not, parse's behavior should be pretty darn close:
No, I am reading in this data from a port.
> Hmmm. If the escapes exist, you might also just replace them: > > >> parse replace/all {\"Hello world,\" I said} {\"} {"} none > == ["Hello world," "I" "said"]
The point is, these escaped quotes should not be treated as grouping constructs, but as normal text. So this: \"Hello world,\" I said should result in [{\"Hello} {world,\"} {I} {Said}].
> Can you use block parsing? REBOL can recognize things for you in mnay
cases. I don't know, I'm trying to find "[" + "red" or "blue" or "green" + "]" within a string, *find* it, not just see if a string matches it. Alex