[REBOL] Parse Question: Why Doesn't This Work? Re:(3)

1999-09-29 Thread timewarp
[EMAIL PROTECTED] wrote: > > EAT, I think this is what you need: > > headrule: [ > some [ > thru "=== " copy head to newline ( > append head " (FIRST LEVEL)" append full-contents head > ) > | >

[REBOL] Parse Question: Why Doesn't This Work? Re:(3)

1999-09-28 Thread Al . Bri
I hope this helps! >> str: "--- three dash!" == "--- three dash!" >> ble: copy "" == "" >> parse str [some [thru "---" copy rest to end (ble: rest) | thru "===" copy rest to end (ble: rest)]] == true >> ble == " three dash!" >> str: "=== three equals!" == "=== three equals!" >> parse str [some [t

[REBOL] Parse Question: Why Doesn't This Work? Re:(3)

1999-09-28 Thread petr . krenzelok
[EMAIL PROTECTED] wrote: > Okay, granted. Here's the same rule with a different word... > > headrule: [some > [thru "=== " copy header to newline > ( append header " (FIRST LEVEL)" > append full-contents header)| > thru "--- " copy head