I know how to split usage, multiple delimiters, but I have no idea how to split a string into an array between two characters. So:
var myArray = "(text1)(text2)(text3)".split(???) //=> myArray[0] = "text1", myArray[1] = "text2", myArray[2] = "text3"
What should I type in "???"? Or is there another approach I should use?
Creating a ") (" separator will not work, because I want to split the array into many separators, such as ">", which makes it extremely impractical to list all possible combinations of separators
curious-cat
source share