I have this regular expression.
MMM D[,] YYYY
/^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\ (\d{2})\, (\d{4})$/
How i can do this [,] is optional?
MMM D, YYYY
MMM D YYYY
just do ,?
that makes the comma optional.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With