I need to split a element in a array into another array, but the delimiters varies.
[
" ",
"",
"Apple,Orange,[Pineapple],GreenApple/Suggar"
]
I need the following output:
[
"Apple",
"Orange",
"Pineapple",
"GreenApple",
"Suggar"
]
The only way that I can think is to search and replace symbols like "[", "]", "/" for only one "," and then split in the standard way.
Is there a more intelligent way to do so?