Re: Why doesn't this match

2003-07-09 Thread David Storrs
On Tue, Jul 08, 2003 at 02:48:59PM -0400, Paul Kraus wrote: Expression /Sales - Freight - Leimkuehler\s+(\d+,?\d+\.?\d+)/ String 410-02-00Sales - Freight - Leimkuehler 6.96 It does match if I remove everything after Leimkuehler. This is how it reads to me 1 or more spaces

RE: Why doesn't this match

2003-07-08 Thread Hanson, Rob
I am assuming my the problem is with ,? But I don't understand why. (\d+,?\d+\.?\d+) This matches 1+ digits, and optional comma, 1+ digits, optional period, and 1+ digits. So if the comma is not present (which it isn't in your example) it MUST match AT LEAST TWO digits (one before AND one

RE: Why doesn't this match

2003-07-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Paul Kraus wrote: Expression /Sales - Freight - Leimkuehler\s+(\d+,?\d+\.?\d+)/ String 410-02-00Sales - Freight - Leimkuehler 6.96 It does match if I remove everything after Leimkuehler. This is how it reads to me 1 or more spaces Open paren to save value to $1 1 or more

Re: Why doesn't this match

2003-07-08 Thread Paul Johnson
On Tue, Jul 08, 2003 at 02:48:59PM -0400, Paul Kraus wrote: Expression /Sales - Freight - Leimkuehler\s+(\d+,?\d+\.?\d+)/ String 410-02-00Sales - Freight - Leimkuehler 6.96 It does match if I remove everything after Leimkuehler. This is how it reads to me 1 or more spaces