<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr"><br></div><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">I'd like to use the re module to parse a long text file, 1GB in size. I wish that the re module could parse a stream, so I wouldn't have to load the whole thing into memory. I'd like to iterate over matches from the stream without keeping the old matches and input in RAM.</div><div dir="auto"><br></div><div dir="auto">What do you think?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Ram.</div></div>
</div></div>