[REBOL] Re: Parse versus Regular Expressions
From: g:santilli:tiscalinet:it at: 5-Apr-2003 10:39
Hi Joel,
On Saturday, April 5, 2003, 1:01:10 AM, you wrote:
JN> How would you attack that with the PARSE dialect?
You can use the same technique you use with REs, except that you
can avoid useless copying.
>> parse "abc" [start: any #a end: (n: offset? start end) n #b n #c]
== true
>> parse "aabbcc" [start: any #a end: (n: offset? start end) n #b n #c]
== true
>> parse "aaabbbccc" [start: any #a end: (n: offset? start end) n #b n #c]
== true
>> parse "aaabbccc" [start: any #a end: (n: offset? start end) n #b n #c]
== false
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r