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

[REBOL] Re: Strange parsing behavior

From: tomc::darkwing::uoregon::edu at: 2-Aug-2002 21:01

maybe this is what you were after rule1: [start: copy string1 [ [to " - " (?? string1)] | to newline] copy string2 to end] == [start: copy string1 [[to " - " (?? string1)] | to newline] copy string2 to end]
>> string1
== "this is a - "
>> string2
== "parsing test"
>>
notice the first optional matching pattern is in its own block. On Fri, 2 Aug 2002, Robert M. Muench wrote: