[REBOL] Re: Parsing until the end
From: rotenca:telvia:it at: 6-Jan-2003 2:46
Hi Gabriele,> string: "XYhelloXYpeopleXYXYhowXYareXYyouXY" > > rule: [thru "XYXY" mark1: some [text mark2: "XY"]] > text: [to "XY"] > > if parse/all string rule [copy/part mark1 mark2] > > >> if parse/all string rule [copy/part mark1 mark2] > == "howXYareXYyou"Only for exercise: parse/all string [thru "XYXY" s: some [to "XY" e: "XY"] end (r: copy/part s e)] --- Ciao Romano