I have string like this one:
This is a text [SPACE] and this also text [SPACE] more text [SPACE] here text
My goal is to create array like this:
['This is a text', '[SPACE]', 'and this also text', '[SPACE]', 'more text', '[SPACE]']
Or like this
['This is a text', 'SPACE', 'and this also text', 'SPACE', 'more text', 'SPACE']
I've tried to split it like this .split('['), but it's not exactly what I'm looking for