Re: Regex on a huge text

2008-08-24 Thread Paddy
On Aug 22, 9:19 pm, Medardo Rodriguez [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 11:24 AM, Dan [EMAIL PROTECTED] wrote: I'm looking on how to apply a regex on a pretty huge input text (a file that's a couple of gigabytes). I found finditer which would return results iteratively which

Re: Regex on a huge text

2008-08-23 Thread Gabriel Genellina
En Fri, 22 Aug 2008 18:56:51 -0300, John Machin [EMAIL PROTECTED] escribió: On Aug 23, 6:19 am, Medardo Rodriguez [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 11:24 AM, Dan [EMAIL PROTECTED] wrote: I'm looking on how to apply a regex on a pretty huge input text (a file that's a couple of

Regex on a huge text

2008-08-22 Thread Dan
I'm looking on how to apply a regex on a pretty huge input text (a file that's a couple of gigabytes). I found finditer which would return results iteratively which is good but it looks like I still need to send a string which would be bigger than my RAM. Is there a way to apply a regex directly

Re: Regex on a huge text

2008-08-22 Thread Medardo Rodriguez
On Fri, Aug 22, 2008 at 11:24 AM, Dan [EMAIL PROTECTED] wrote: I'm looking on how to apply a regex on a pretty huge input text (a file that's a couple of gigabytes). I found finditer which would return results iteratively which is good but it looks like I still need to send a string which

Re: Regex on a huge text

2008-08-22 Thread Terry Reedy
Medardo Rodriguez wrote: On Fri, Aug 22, 2008 at 11:24 AM, Dan [EMAIL PROTECTED] wrote: I'm looking on how to apply a regex on a pretty huge input text (a file that's a couple of gigabytes). I found finditer which would return results iteratively which is good but it looks like I still need

Re: Regex on a huge text

2008-08-22 Thread John Machin
On Aug 23, 6:19 am, Medardo Rodriguez [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 11:24 AM, Dan [EMAIL PROTECTED] wrote: I'm looking on how to apply a regex on a pretty huge input text (a file that's a couple of gigabytes). I found finditer which would return results iteratively which

Re: Regex on a huge text

2008-08-22 Thread Medardo Rodriguez (Merchise Group)
On Fri, Aug 22, 2008 at 4:48 PM, Terry Reedy [EMAIL PROTECTED] 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 :(