Hello,

I have a string such as "hello I [am posting] a question on [the code] guru forums on [10th July]".

I need to split the string to be like this:

hello
I
[am posting]
a
question
on
[the code]
guru
forums
on
[10th July]

I could do this manually using looping, assessing each character and adding to an array of strings as I choose but this would be expensive. I originally used Split(' ') but I need the contents of the square brackets to maintain their contents.

Can anyone think of any efficient way to complete this task? - or will I need to loop and build....

Thanks