[EMAIL PROTECTED] wrote:

> 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)]]

Marking the input?

1) if str is some 100 and more kbs of memory, you are making copies of
it somewhere in memory (copy rest to end) well?
2) all we are asking for is - find first occurance of "---" or "===",
and not -  if not found "---", try to find "===", nothing more ... so,
how to search for first occuracne? If not present in parse dialect,
perhaps first ["---" "==="] could be introduced to the parser

But I think it's achievable in some way, just don't know how (there
should be some way without the need to copy something or mark the input,
the same goes for simple replacing values - 'replace could be introduced
and behave just like 'copy does ...)

-pekr-

> Andrew Martin
> Speaking in REBOL tongues...
> [EMAIL PROTECTED]
> http://members.xoom.com/AndrewMartin/
> Online @ 33,600 Baud!
> -><-

Reply via email to