public String replace(){
String[] parts = str.split("&([A-Za-z]+|[0-9]+|x[A-Fa-f0-9]+);");
for (int i = 0; i < parts.length; i++) {
System.out.println(parts[i]);
}
return "";
}
what makes this line exactly "String[] parts = str.split("&([A-Za-z]+|[0-9]+|x[A-Fa-f0-9]+);");"? i tried in my code but it didnt do anything..could someone give a string example so i can see how it splits ?