阅读背景:

Python 正则表达式验证ISO 8601日期和时间

来源:互联网 

CODE:

(?P<year>[0-9]{4})(?P<hyphen>-)?(?P<month>1[0-2]|0[1-9])(?(hyphen)-)(?P<day>3[01]|0[1-9]|[12][0-9]) (?P<hour>2[0-3]|[01][0-9])(?(hyphen):)(?P<minute>[0-5][0-9])(?(hyphen):)(?P<second>[0-5][0-9])(?P<year>[0-9]{4})(?P<hyphen>-)?(?P<



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: