I have a csv file and in it there is a string representation of a date and time
2014-05-11T09:00:01.772401
I am trying to verify it follows this format. My thought was to use a regex to match a pattern like 4 numbers followed by a - 2 numbers followed by a - and so on and so forth but i'm not familiar enough with regexes to build it.
Is validation of a string matching a specific pattern best accomplished using regexes or should I use something else. If regex is the way can you please provide the regex and explain what Char's represent in the validation process.
Also any links that could better explain regex pattern matching would be greatly appreciated.