title: Regex Match for Valid Dates only
body: <p>I am trying to create a regex that only matches for valid dates (in <code>MM/DD</code> or <code>MM/DD/YY(YY)</code> format)</p>
  
  <p>My current regex <code>(\d+)/(\d+)/?(\d+)?</code> is very simple but it matches any number that has a <code>/</code> before/after. I.e. if a string is <code>2015/2016 12/25</code> it will see both of these as matches but i only want the <code>12/25</code> portion.</p>
  
  <p><a href="https://regex101.com/r/pR8wD3/4" rel="nofollow">Here</a> is a link to some sample RegEx. </p>