I have a string like:
String t = "this is my--test string";
I need to split it by space and -- So i tried:
String[] m = t.split("[\\s -]");
It returns
["this", "is", "my", "", "test", "string"]
but in reality i needed
["this", "is", "my", "--", "test", "string"]
What am I missing? is this possible?