title: Regex to validate date formats dd/mm/YYYY, dd-mm-YYYY, dd.mm.YYYY, dd mmm YYYY, dd-mmm-YYYY, dd/mmm/YYYY, dd.mmm.YYYY with Leap Year Support
body: <p>I need to validate a date string for the format <code>dd/mm/yyyy</code> with a regular expresssion.</p>
  
  <p>This regex validates <code>dd/mm/yyyy</code>, but not the invalid dates like <code>31/02/4500</code>:</p>
  
  <pre><code>^(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{4}$
  </code></pre>
  
  <p>What is a valid regex to validate <code>dd/mm/yyyy</code> format with leap year support?</p>