This is a continuation of the previous thread because none of the answers there produced the intended result. I am getting super wierd behavior using regexes to match dates. I want to match the following dates:
[month-day]
Such as:
"[01-23]" // January 23rd is a valid date
"[02-31]" // February 31st is an invalid date
"[02-16]" // valid
"[ 6-03]" // invalid format
Here is my regex:
regex = /\[^[0-1][1-9]\-[0-3][0-9]\]/
I tried to put both a single \
and double \
infront of brackets but nothing seems to be working for matching these dates. Any ideas?
Thanks!