title: Regular Expression to match dates in YYYY-MM-DD format
body: <p>I have a regular expression in PHP that looks for the date in the format of YYYY-MM-DD</p>
  
  <p>What I have is: <code>[\d]{4}-[\d]{2}-[\d]{2}</code></p>
  
  <p>I'm using preg_match to test the date, the problem is that <code>2009-11-10</code> works, but <code>2009-11-1033434</code> works as well.  It's been awhile since I've done regex, how do I ensure that it stops at the correct spot?  I've tried doing <code>/([\d]{4}-[\d]{2}-[\d]{2}){1}/</code>, but it returns the same result.</p>
  
  <p>Any help would be greatly appreciated.</p>