title: regex for a date format where we have only one digit for date
body: <p>I need to create a regex for a date format in d-mmmm-yyy for an example it will be 7-April-2021</p>
  <p>How can i create for the same</p>
  <p>I have checked resources</p>
  <pre><code>  var dtRegex = new RegExp(&quot;^([0]?[1-9]|[1-2]\\d|3[0-1])- (JAN|FEB|MAR|APR|MAY|JUN|JULY|AUG|SEP|OCT|NOV|DEC)-[1-2]\\d{3}$&quot;, 'i');
  </code></pre>
  <p>found a similar but, i want to have d not dd how could i achieve this</p>