Re: finding a regular expression in a file

2012-04-24 Thread Kushal Kumaran
On Apr 24, 2012 6:32 PM, "S.B" wrote: > > Hello friends. > > Newb question here. > I'm trying to find an efficient way to "grep" a file with python. > The problem is that all the solutions I find on the web read a line at a time from the file with a "for line in" loop and check each line for the R

Re: finding a regular expression in a file

2012-04-24 Thread Jussi Piitulainen
"S.B" writes: > Hello friends. > > Newb question here. > I'm trying to find an efficient way to "grep" a file with python. > The problem is that all the solutions I find on the web read a line > at a time from the file with a "for line in" loop and check each > line for the RE instead of sweeping