JSFiddle - React, Tailwind, and code Playground
JavaScript
var string = 'The value is ij35dss. The value is fsd53fdsfds.';
var re = new RegExp(/The value is (.*?)\./g)
var strs = []
var m = re.exec(string)
while(m != null) {
strs.push(m[1]);
m = re.exec(string)
}
alert(strs)