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

[REBOL] Re: brainfart parse problem

From: gjones05:mail:orion at: 6-Jun-2001 6:59

From: "Erin Thomas"
> okay: > > >> rule: [thru "x" copy a [ opt to "y" | to "z"]] > == [thru "x" copy a [opt to "y" | to "z"]] > >> parse "x .... ab z cd y" rule > == false > >> a > == " .... ab z cd " > > now... how do i work the rule so it will stop at "z" > if "z" happens to be before "y"?
Ah, yes, the cerebral flatulance syndome... :-) If I understand what you want, what you will be happier with is using markers and parse/all. rule: [thru "x" start: to "z" ending: (a: copy/part start ending) to end] parse/all "x .... ab z cd y" rule print a Of, course, if I didn't understand what you wanted, and can't figure out the adjustment, give the list another yell. --Scott Jones