Regex on a huge text
Medardo Rodriguez (Merchise Group)
med.swl at gmail.com
Fri Aug 22 17:14:08 EDT 2008
On Fri, Aug 22, 2008 at 4:48 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> Does not grep only work a line at a time? Just like the code below?
My understanding was that if the regex contains "^" and "$", it will
matches in the full file. I wasn't never test it.
I tested just before, and didn't work :(
If you have a notion of the maximum amount of lines, there is an easy solution.
Regards
More information about the Python-list
mailing list