var str = "Number of tube((13 Hi all people * _ +)) Number of tube((HI AKK)) Number of city((HI DEEP))"; alert(str.match(/Number of tube([^\(\)]+)(?=\)+)/g));