title: Regular Expression for dd-MMM-yyyy and dd-MMM?
body: <p>I need a regular expression for support both date formats <code>dd-MMM-yyyy</code> and <code>dd-MMM</code>. </p>
  
  <p>Ex:</p>
  
  <pre><code>04-Oct-2010
  04-Oct
  04-OCT-2010
  04-OCT
  </code></pre>