Regular Expressions 101

Sponsors

Library entries

0
pcre2

Ipv4 validation

regex for ip validation
Submitted by Amper - 7 hours ago
0
pcre2

Split The Phone Numbers

Split The Phone Numbers
Submitted by anonymous - 11 hours ago
0
pcre2

optional character

match strings with some optional characters
Submitted by anonymous - 5 days ago
0
pcre2

optional

optional
Submitted by anonymous - 5 days ago
0
pcre2

Barcode Regex

Barcode Regex
Submitted by anonymous - 6 days ago
1
pcre2

todos and tags in code

todos and tags in code
Submitted by anonymous - 6 days ago
0
pcre2

Note Body HTML

Match all valid HTML tags
Submitted by anonymous - 7 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 - 5 months ago