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

[REBOL] Re: Parsing bug?

From: lmecir:mbox:vol:cz at: 7-Oct-2002 12:52

Hi Franck, you can do: parse/all text [ (result: copy []) start: any [ #"|" end: (append result copy/part start back end) start: | skip ] (append result copy start) ] result ----- Original Message ----- From: "Franck MARCIA" Hi all, Is that a bug or is there something I don't understand?
>> text: {The|quick "brown"|"fox" jumps|over "the" lazy|dog}
== {The|quick "brown"|"fox" jumps|over "the" lazy|dog}
>> parse/all text "|"
== ["The" {quick "brown"} "fox" " jumps" {over "the" lazy} "dog"] Look at the field which contains {"fox" jumps}! How can I get ["The" {quick "brown"} {"fox" jumps} {over "the" lazy} dog ]? Franck.