var str = "Number of tube13 Hi all people * _ +)) Number of tubeHI AKK))"; alert(str.match(/([^\(\)]+)(?=\)+)/g));