I have this fragment of the code:
...
String SEP=";\\|,";
String q="2000|3000|1000";
String[] sp=q.split(SEP);
System.out.println(sp.length);
I expected to get a '3' as result. But I am getting '1'.
I wanted to split 'q' on '|'.
What am I doing wrong. I tried :
SEP=";|," and SEP=";\\\\|," with the same result
Tnx,
Haris