JSFiddle - React, Tailwind, and code Playground
JavaScript
var myArray = "(text1)(text2)(text3)".split(/[()]+/).filter(function(e) { return e; });
alert(myArray);
var myArray = "(text1)(text2)(text3)".split(/[()]+/).filter(function(e) { return e; });
alert(myArray);