I need to create a regex for a date format in d-mmmm-yyy for an example it will be 7-April-2021
How can i create for the same
I have checked resources
var dtRegex = new RegExp("^([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}$", 'i');
found a similar but, i want to have d not dd how could i achieve this