title: How can I re-arrange this regex to work with the MM/DD/YYYY format?
body: <p>There's a <a href="https://regexr.com/2vg48" rel="nofollow noreferrer">brilliant bit of regex by Macs Dickinson</a> that validates DD/MM/YYYY strings taking into account allowable days for each month (eg 28 vs 30 vs 31) and the possibility of February 29th but only on leap years:</p>
  
  <pre><code>^(((0[1-9]|[12][0-9]|3[01])[- /.](0[13578]|1[02])|(0[1-9]|[12][0-9]|30)[- /.](0[469]|11)|(0[1-9]|1\d|2[0-8])[- /.]02)[- /.]\d{4}|29[- /.]02[- /.](\d{2}(0[48]|[2468][048]|[13579][26])|([02468][048]|[1359][26])00))$
  </code></pre>
  
  <p>I'm looking to re-arrange this to use for MM/DD/YYYY strings, but I can't wrap my head around it enough to get it there. Any help is much appreciated!</p>