Him I would like to split string by two characters.
For example I have string like this one:
"xx-aa-[aa]-22-[bb]"
.
I want to retrieve string array of [aa]
and [bb]
. All characters between [ ].
First I can split by '-'
, so I'll have string array
var tmp = myString.Split('-');
But now how can I retrieve only strings between []
?