From: Clifford Heath Date: 2008-02-06T09:44:57+09:00 Subject: Re: Parsing JSON (#155) Eric Mahurin wrote: > With Regexp, you find it easiest > and safest to read the entire file/stream into a String first. IMHO, a > "real" parser should not need to read the entire file into memory. Agreed. It should however be possible to modify a Regexp engine to work on an IO stream, reading more input only as required. Because of the lookahead required, it is necessary to be able to wind back excessive input that has been read.