Re: regexp match large file

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
What's the easiest way to match regexp in an entire .txt file against a
set of keywords?

For example, a script that would search an e-mail for the words "hello"
"computer" "johnny" and then return the results?

Sorry if this question is a bit obtuse, I merely exploring an idea...


Re: regexp match large file

You could load the whole file into a string and go from there or, if it
is a big big file, read it in one line at a time.

As far as the matching part, I have asked for help on this topic in the
past so maybe a few links to recent discussion might help:

Site Timeline