Today, I present some powerful regexes for use in date processing!
To try these out, just head over to regexr.com.
This regex will capture all dates in the formats MM/DD/YY, MM/DD/YYYY, MM-DD-YY,
MM-D-YYYY, YYYY-MM-DD and more!
([0,1]?\d{1})[\/|\-](([0-2]?\d{1})|([3]