On Fri, Sep 23, 2005 at 03:07:59AM -0700, Yitzchak Scott-Thoennes via RT wrote: > > Interesting. Unfortunately, this regexp still crashes perl 5.8.7 with a bus > > error with my test case. Maybe it's because of the (x*)* construct? > > Try instead: /"[^"\\]*(?>\\.[^"\\]*)*"/s
Nice idea. I anchored it by adding a ^ at the front. Unfortunately it doesn't work; it still dumps core with the test program I posted. I also tried /^(?>"[^"\\]*)(?>\\.[^"\\]*)*"/s and /^(?>"[^"\\]*)(?>(?>\\.[^"\\]*)*)"/s but both those dump core too. Are you able to replicate the problem locally with the chomplogs-test2.pl program I gave? If so, you can try other regexps there. I don't understand the semantics of ?> enough to be able to assert this is a bug in perl rather than a bug in my understanding :-) Regards, Brian.