Regular expression for capturing dates and date ranges.
A proof of concept regex that captures dates and date ranges with a variety of separators.
Works with both DMY and MDY, and if one is not needed, it can be easily deleted from the regex.
The full variety of months needs to be implemented by the programmer themselves since developing it in regex101...
Submitted by Matey Krastev - 3 months ago