Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-12-20 17:40
Flavor·Python

r"
([1|2]\d{3})\/((0[1-9])|(1[0-2]))\/([0-2][1-9]|(3[0-1]))T(([0-1]\d)|(2[0-3])):([0-5][0-9]):([0-5][0-9])
"
g
Open regex in editor

Description

Matches dates in the following format: %Y/%m/%dT%H:%M:%S

This is 24h format (00-23h) and no leap seconds.

Submitted by anonymous