ISO-8601 Regex
ISO-8601 Regex

[ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) is an easy to use universal datetime format. This RegExp supports the 2004 specification excluding the `--03-12` format, durations, and intervals.

[RegExp Flow Chart](https://regexper.com/#%2F%5E(%3F!%5B%2B-%5D%3F%5Cd%7B4%2C5%7D-%3F(%3F%3A%5Cd%7B2%7D%7CW%5Cd%7B2%7D)T)(%3F%3A%7C(%5Cd%7B4%7D%7C%5B%2B-%5D%5Cd%7B5%7D)-%3F(%3F%3A%7C(0%5Cd%7C1%5B0-2%5D)(%3F%3A%7C-%3F(%5B0-2%5D%5Cd%7C3%5B0-1%5D))%7C(%5B0-2%5D%5Cd%7B2%7D%7C3%5B0-5%5D%5Cd%7C36%5B0-6%5D)%7CW(%5B0-4%5D%5Cd%7C5%5B0-2%5D)(%3F%3A%7C-%3F(%5B1-7%5D)))(%3F%3A(%3F!%5Cd)%7CT(%3F%3D%5Cd)))(%3F%3A%7C(%5B01%5D%5Cd%7C2%5B0-4%5D)(%3F%3A%7C%3A%3F(%5B0-5%5D%5Cd)(%3F%3A%7C%3A%3F(%5B0-5%5D%5Cd)(%3F%3A%7C%5C.(%5Cd%7B3%7D)))(%3F%3A%7C%5BzZ%5D%7C(%5B%2B-%5D(%3F%3A%5B01%5D%5Cd%7C2%5B0-4%5D))(%3F%3A%7C%3A%3F(%5B0-5%5D%5Cd)))))%24%2F)
ryanml/RegexHub,lukehaas/RegexHub