Regular Expressions 101

Library entries

iso8601 duration

Vote

0

Regular Expression
javascript

/
^P(\d+([,\.]\d+)?Y)?(\d+([,\.]\d+)?M)?(\d+([,\.]\d+)?D)?(T(\d+([,\.]\d+)?H)?(\d+([,\.]\d+)?M)?(\d+([,\.]\d+)?S)?)?$
/
gm

Description

Loading markdown...
Submitted by anonymous - 3 years ago