Regular Expressions 101

Library entries

Date extractor

Vote

1

Regular Expression
javascript

/
^([1-9]\d*)-(0[1-9]|1[0-2])-(0?[1-9]|[1-2]\d|3[0-2])(?:\x20([01][0-9]|2[0-3]):([0-5]\d):([0-5]\d)(\.\d+)?)?$
/
gm

Description

Loading markdown...
Submitted by luis140219 on GitHub - 7 years ago