1 hour ago · Tech · 0 comments

Every episode of the Wonders of Web Weaving podcast has a transcript. The first episode was transcribed by me; future episodes are being transcribed by Zachary from Lunaseeker Press. The transcript has links to the time at which each speaker starts speaking. For example, 0:19 is the time when I ask the first question in my interview with Alexandra. The links, written in markdown – which is then turned into HTML by a static site generator – look like this:**[0:19](#t=0:19)** - ...So far, I have been manually adding the links to the timestamps, which look like this:**0:19** - ...But this morning I had an idea: I could write a regex to add the links. VSCodium, the text editor I use, has support to find-and-replace using a regex. With this idea in mind, I went to where many of my regexes begin: regex101, a site that lets you interactively create, review, and test regexes.I needed two regexes: one regex that would capture the minutes and seconds in a timestamp, and another that would take…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.