Tag Archives: js

  • JavaScript preg_match

    In the context of a nasty (wrong) SCORM package, I had to find a method of quickly parsing a time representation like “PT03H23M34S” and transform it into “03:23:34”. After a few quick searches on how to do user string.replace(), I had to change the method, because apparently replace() doesn’t allow for selection identifiers (2 and […]