Performing regex on a stream
- by takoi
I have some large text files which im going to preform consecutive matching on (just capturing, not replacing). Im thinking its not such a good idea to keep the whole file in memory, but rather use a Reader.
What i know about the input is that if there's a match, its not going to span more than 5 lines. So my idea was to have some sort of buffer…