in reply to use regular expressions across multiple lines from a very large input file
Also don’t neglect what existing command-line tools and scripting might be able to do for you. (Even Windows, with their PowerShell, is finally glomming on to this...)
For example: grep -r regex filespec ... already does a very large part of what you are trying to do. If you could use it simply to grab the matching phrases and “enough of the surrounding real-estate,” you could then filter what grep has sent you, to whittle it down into the final answer, using Perl or otherwise.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use regular expressions across multiple lines from a very large input file
by rizzy (Sexton) on Dec 07, 2010 at 04:01 UTC |