Regular Expressions 101

Sponsors

Library entries

0
pcre2

belcorp

test
Submitted by anonymous - 14 days ago
0
pcre2

C/F temp unit

me
Submitted by anonymous - 15 days ago
0
pcre2

Postfix

Add DR to end of line
Submitted by anonymous - 16 days ago
0
pcre

Time in hh:mm:ss

19h32min16s
Submitted by anonymous - 19 days ago

Best ISO-8601 Date and Time parser

Vote

0

Regular Expression
javascript

/
(([0-9]{4})-(0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-((0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9])))(([\s|T])(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9])(:(0[0-9]|[1-5][0-9]))?(\.([0-9]{3}))?(Z)?)?
/
gm

Description

Loading markdown...
Submitted by Jeff Galbraith - 4 months ago