C
CJ
I'm not an expert on regular expressions, but I thought I knew how to
construct simple ones
I have two very simple regular expresions:
"|1|(?<dt>\d\d-\d\d-\d\d\d\d).*" and ".*(?<dt>\d\d-\d\d-\d\d\d\d).*"
With the input string @"|1|01-08-2005 12:57:12", both regular
expressions match. But the named group dt is correct for the second
expression (01-08-2005) and just an empty string for the first, which
just doesn't make much sense to me.
construct simple ones

I have two very simple regular expresions:
"|1|(?<dt>\d\d-\d\d-\d\d\d\d).*" and ".*(?<dt>\d\d-\d\d-\d\d\d\d).*"
With the input string @"|1|01-08-2005 12:57:12", both regular
expressions match. But the named group dt is correct for the second
expression (01-08-2005) and just an empty string for the first, which
just doesn't make much sense to me.