I have a string that would always output in the following format, but with different lengths.
String s1= "['Aaaa', 'Eeee', 'Ffff', 'Cccc', 'Dddd']";
How to split this string and store the values in a n array of strings, I tried String.Split(), but I failed to catch the inner values.
Do you think regular expressions could help???
Have you tried running it through Split with the regex parameter as"[\\[\\]\\', ]"
Basically any of [,],,,', - more information here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With