I have String value lets say :
String name="NAME#|ANAS";
I want to split this String to Array like :
[NAME, ANAS]
I try to do this :
String name ="Name#|Anas";
String[] split = name.split("#|");
but the result not expected :
[N, a, m, e, , |, A, n, a, s]
Can some one give me the solution? and why its separate all the String to char ?