From Array get only number into a new array or a string
var fetchMIDarray = [
'Corp: nameofthecompany (345961663886)',
'Chain: somerandomname (372395416889)'
]
except result for new array should be:
var fetchnumber =['345961663886','372395416889']
I know how this works for the string but unable to do same for array code sinppet for string.
var midname='Corp: Best Buy ApplePay/Partsearch (345961663886)';
var matches2 = midname.match(/\d+/);
console.log(matches2);