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