title: My regex does not match yyyy-mm-ddThh:mm:ss
body: <p>I have tried</p>
  
  <pre><code>^(19|20)\d\d[-](0[1-9]|1[012])[-](0[1-9]|12[0-9]|3[01]T(0[0-9]|1[0-9]|2[0123]):(0[0-9]|12345[0-9]):(0[0-9]|12345[0-9]))$
  </code></pre>
  
  <p>and</p>
  
  <pre><code>^(19|20)\d\d[-](0[1-9]|1[012])[-](0[1-9]|12[0-9]|3[01][T](0[0-9]|1[0-9]|2[0123])[:](0[0-9]|12345[0-9])[:](0[0-9]|12345[0-9]))$
  </code></pre>
  
  <p>and neither of them worked on a sample datetime - 2009-06-15T13:45:30</p>