olisemalis
MIS
Hello,
I need to split a string in the folowing way:
Example string: "This is a test [@something] for spliting a string [@something_else].
I would like to get an array like this:
arr(0)= "This is a test "
arr(1)= " for spliting a string "
arr(2)= "."
In other words, I would like to split a string finding a substring that begins with "[@" and that ends with "]" (the first "]" after an "[@".
Any ideas?
thank you
I need to split a string in the folowing way:
Example string: "This is a test [@something] for spliting a string [@something_else].
I would like to get an array like this:
arr(0)= "This is a test "
arr(1)= " for spliting a string "
arr(2)= "."
In other words, I would like to split a string finding a substring that begins with "[@" and that ends with "]" (the first "]" after an "[@".
Any ideas?
thank you