I have a video site where people can comment under each video.
I’m trying to create a linkify function that will parse a user’s comment and look for substrings in the “minutes:seconds” format. The link will have a click event that will trigger a function call, which in turn will seek the video to that particular moment.
Any help is appreciated.
This should help get you started (you’ll have to tweak the regular expression to validate the time correctly):