How would I split a string by two opposing values? For example (
and )
are the "deliminators" and I have the following string:
Wouldn't it be (most) beneficial to have (at least) some idea?
I need the following output (as an array)
["Wouldn't it be ", "most", " beneficial to have ", "at least", " some idea?"]