I have string am retrieving from API that contains a this character "|". I will like to split the string with "|" I tried several options but failed.
String response="The general String | Yesterday";
String splitResponse = response.split("|");
// also tried this
reponse.split("(?<=|)"); //no success