Regular Expressions 101

Library entries

ISO 8601 Duration Validator

Vote

2

Regular Expression
javascript

/
^P(([0-9]+Y)?([0-9]+M)?([0-9]+W)?([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+(\.?[0-9]+)?S)?))?$
/

Description

Loading markdown...
Submitted by ed0wolf - 6 years ago