[REBOL] Re: newlines
From: lmecir:mbox:vol:cz at: 8-Nov-2001 11:25
Hi Brett,
your methods don't work, see this:
>> input: "..................a...bcd.s.f.g.k.l.m.n.o.p.............."
== {..................a...bcd.s.f.g.k.l.m.n.o.p..............}
>> parse/all input method1
== true
>> input
== "..a...bcd.s.f.g.k.l.m.n.o.p.."
Regards
Ladislav
Brett: <<Hi Joel,
Thanks for another interesting benchmarking post.
For curiosity, could you add these late candidates to your benchmark tests?
method1: [any [".." mark1: any #"." mark2: (remove/part mark1 mark2) |
skip ]]
parse/all input method1
other-char: complement charset {.}
method2: [any [some other-char | ".." mark1: any #"." mark2: (remove/part
mark1 mark2) | skip ] ]
parse/all input method2
Brett.