title: Regular expression for containing DD-MMM-YYYY or DD-MMM-YYYY HH:MM
body: <p>I have been googling about and need a valid regular expression statement (which begins and ends with the same character) which will validate for DD-MMM-YYYY or DD-MMM-YYYY HH:SS.</p>
  
  <p>It does not matter about checking for valid dates (such as 31-Feb-2013 would be OK) it is just the formatting I require.</p>
  
  <p>For example:</p>
  
  <ul>
  <li>99-ZzZ-9999 would be valid.</li>
  <li>99-ZzZ-9999 23:59 would be valid.</li>
  <li>99-ZzZ-99 would be NOT be valid.</li>
  <li>1-feb-2013 would NOT be valid</li>
  <li>01-Feb-2013 would be valid.</li>
  <li>30-Feb-2013 would be valid.</li>
  <li>30-Feb-2013 12:59am would NOT be valid.</li>
  </ul>
  
  <p>The checking for valid dates is done elsewhere but this is just for a formatting prompt.</p>
  
  <p>I've done a search but i can't seem to find one with an opation time section like i need and where the regex starts and ends with the same characters to not cause an error.</p>
  
  <p>Thanks,</p>