Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?'YYYY'[\d]{4})(?'MM'[\d]{0,2})(?'DD'[\d]{0,2})(?'HH'[\d]{0,2})(?'NN'[\d]{0,2})(?'SS'[\d]{0,2})(?'MS'[\.]{1}[\d]{0,4})?(?'TZ'[+|-][\d]{4})?$
/
gm

Description

DTM Validation

Submitted by Mike Cheel - 3 years ago