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
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:
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