Regular Expressions 101

Community Library

Your search did not match anything

Community Library Entry

0

Regular ExpressionOpen Workspace

r"
(\d{4}(-\d{2}-\d{2}|\d{2}\d{2}))(T\d{2}(:?\d{2}){1,2}(\.\d{1,3})?(([+-]\d{2}(:?\d{2})?)|Z)?)?
"
gm

Description
Created·2022-07-10 03:03
Type·Match
Flavor·Python

Parses most of the variations of ISO8601 that are allowed, including dates only and date/time with or without the time zone.

Submitted by Mumblepins
Open Workspace