Without lookaround, this regular expression also accepts P
and PT
as valid duration strings. If your library supports lookaround, I recommend that you use Full ISO 8601 Duration with lookaround (also in the library) instead, which will also reject P
and PT
.