Looking to build a reg expression that does the following:
If given a date-string in the format: a/b/c
I need to build a regular expression that would return true if:
- month = a
- date is between x and y (including both limits)
- year = c
An example:
Date is 3/6/12,
RegExp return true if:
- month = 3
- day is between 2 and 6 (including limits)
- year = 12
Try this:
\b3/[23456]/12\bUnless that above was just an example, then you’ll need to clarify what you are after