You already have one answer: split the file into chunks and test each chunk. Can you tell us why you have discarded that approach?
In reply to Re: Possible to have regexes act on file directly (not in memory)
by hippo
in thread Possible to have regexes act on file directly (not in memory)
by Nocturnus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |