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

[REBOL] got my brainfart parse answer

From: timewarp:sirius at: 6-Jun-2001 14:26

remember bo? this is what he showed me:
>> rule: [thru "x" mark: to "y" y: :mark to "z" z: (either (index? y) <
index? z [a: copy/part mark y][a: copy/part mark z])]
>> parse "x .... ab z cd y" rule
== false
>> a
== " .... ab "
>> parse "x .... ab cd y z" rule
== false
>> a
== " .... ab cd " and, this is what i wanted. unfortunately, it's not what i wanted to see... now i have to redesign my data structures as well as a significant portion of the script... *sigh* cheerfulness, -----EAT -- Erin A. Thomas --- == --- (707) 463-8578 ---- www.mochinet.com ----