JSFiddle - React, Tailwind, and code Playground
HTML
<p id='text' />
<p id="result" />
CSS
body {
font-family: Verdana, Ariel;
}
JavaScript
var str = "00:00:01.120\r\nIn this lesson, we will learn how to determine the equation of a line, using the available information.\r\n00:00:08.040\r\nLet's look at the first example. Determine the equation of the line, that passes through the points (2, 5), and with the slope of 2.\r\n00:00:19.000\r\nTo begin, we should know that the equation of a line can be written in the form of y = mx + b, where m is the slope, and b is the y-intercept.";
document.getElementById('text').innerText=str;
var patt1 = /(\d\d.\d\d.\d\d.\d\d\d)/gm;
var result = str.match(patt1);
document.getElementById('result').innerText=result;