I cant seem to be able to split on a simple regex,
If i have a string [data, data2]
and i attempt to split like so: I tried to escape the brackets.
String regex = "\\[,\\]";
String[] notifySplit = notifyWho.split(regex);
The output of looping through notifySplit shows this regex not working
notify: [Everyone, Teachers only]
Any help on what the proper regex is, i am expecting an array like so: data, data2
where i could possibly ignore these two characters [ ,