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