JSFiddle - React, Tailwind, and code Playground
by marclundgren
JavaScript
var getNumber = function(string) {
var matches = string.match(/([0-9]+)/);
return matches && matches[1];
};
var output = getNumber('Digital Insight - 04423');
document.write(output);