JSFiddle - React, Tailwind, and code Playground
JavaScript
var regex = /\d+/g;
var string = '(value one is: 100), (value two is:200)';
var matches = string.match(regex); // creates array from matches
alert(matches)
var regex = /\d+/g;
var string = '(value one is: 100), (value two is:200)';
var matches = string.match(regex); // creates array from matches
alert(matches)