SCORM 2004 Time Format - Regular Expression?
I am building a SCORM 2004 javascript API for an LMS, and one of the SCORM 2004 requirements is that timeintervals passed into it must follow the following format. Does anyone know what the regular expression of this would be? I am trying to wrap my mind around it, but to no avail. Note: P must always be the first character. P[yY][mM][dD][T[hH][nM][s[.s]S]] where: y: The number of years (integer, >= 0, not restricted) m: The number of months (integer, >=0, not restricted) d: The number of days (integer, >=0, not restricted) h: The number of hours (integer, >=0, not restricted) n: The number of