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

[REBOL] RE : Re: Parsing bug?

From: fmarcia:marcopoly at: 7-Oct-2002 15:03

Thanks Ladislav. Franck. -----Message d'origine----- De=A0: Ladislav Mecir [mailto:[lmecir--mbox--vol--cz]] Envoy=E9=A0: lundi 7 octobre 2002 12:53 =C0=A0: [rebol-list--rebol--com] Objet=A0: [REBOL] Re: Parsing bug? 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.