I am new to to regex stuff in c#. I read whatever I could get my hands on and tried to come up with a regex for extracting the date time value from my log. This is what I am using:
value = Regex.Match("abc 2012-12-23 01:13:51.253",
@"\b20[0-9][0-9]-[0-1][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9].\d+")
.Value;
But everytime I am getting "" in value. Can someone please help me as to what am I doing wrong?
Thanks in advance.
DateTime.ParseExact?