minor regex brain fart

2003-04-02 Thread Yacketta, Ronald
Folks, I have hit a minor brain road block here, trying to regex out a line containing all text up to the first . Line looks like this: 04/01/03 16:36:21.737 [blah]|blah(): Throw blah from idl method: Number: 6048 Reason: blah failed: blah. blah. - OrderNumber blah blah WorksheetNumber blah SR

Re: minor regex brain fart

2003-04-02 Thread Stefan Lidman
Here is my regex push( @errors, $1) if ( $_ =~ /^$g_date.*method: (.*\. )/ ); Regex are greedy by defalt add a ? for non greedy matching push( @errors, $1) if ( $_ =~ /^$g_date.*method: (.*?\. )/ ); and it should work /Stefan What I am seeing is Number: 6048 Reason: blah failed:

Re: minor regex brain fart

2003-04-02 Thread Elias Assmann
On Wed, Apr 02, 2003 at 12:45:37PM -0500, Yacketta, Ronald wrote: I have hit a minor brain road block here, trying to regex out a line containing all text up to the first . Line looks like this: 04/01/03 16:36:21.737 [blah]|blah(): Throw blah from idl method: Number: 6048 Reason: blah