Re: [GENERAL] large document multiple regex

2007-02-02 Thread David Fetter
On Fri, Feb 02, 2007 at 12:00:27PM -0500, Merlin Moncure wrote: > On 2/1/07, Jim Nasby <[EMAIL PROTECTED]> wrote: > >Have you thought about something like ~ > >'(first_string|second_string| third_string)'? Obviously your > >example would be more complex, but I believe that with careful > >crafting,

Re: [GENERAL] large document multiple regex

2007-02-02 Thread Merlin Moncure
On 2/1/07, Jim Nasby <[EMAIL PROTECTED]> wrote: Have you thought about something like ~ '(first_string|second_string| third_string)'? Obviously your example would be more complex, but I believe that with careful crafting, you can get regex to do a lot without resorting to multiple passes. that

Re: [GENERAL] large document multiple regex

2007-02-02 Thread Jim Nasby
On Jan 26, 2007, at 9:06 AM, Merlin Moncure wrote: I am receiving a large (300k+_ document from an external agent and need to reduce a few interesting bits of data out of the document on an insert trigger into separate fields. regex seems one way to handle this but is there any way to avoid resc

[GENERAL] large document multiple regex

2007-01-26 Thread Merlin Moncure
Hello, I am receiving a large (300k+_ document from an external agent and need to reduce a few interesting bits of data out of the document on an insert trigger into separate fields. regex seems one way to handle this but is there any way to avoid rescanning the document for each regex. One sol