I Have string random length
Ex:
sadsadsadsad(323213)dfsssds sadsadsadsad(321)dfsssds
How can I find the values in brackets?.
Try This:
var str = 'sadsadsadsad(321)dfss888s(120)ds'; str.match(/\(\d+\)/g).map ( value => { console.log( value.replace(/[)(]/g, '') ) } );