var reg = /\(+(.*?)\)+/g; var str = "Number of tube((13 Hi all people * _ +)) Number of tube((HI AKK))"; var arr=str.match(reg); alert(arr);