HTML5 > Duration (ISO 8601) Favorite

Years and months must be 0.

Sample Matches
Text Result
P0Y2D
Group #0
P0Y2D
Group #1
0
Group #3
2
match
P0Y2DT0H3M
Group #0
P0Y2DT0H3M
Group #1
0
Group #3
2
Group #4
0
Group #5
3
match
PT3M
Group #0
PT3M
Group #5
3
match
P1Mno match
P1Yno match