I need to get string from between two characters. I have this
S= \"10:21:35 |Manipulation |Mémoire centrale |MAJ Registre mémoire\"
a
You probably want this:
String[] s = "10:21:35 |Manipulation |Mémoire centrale |MAJ Registre mémoire".split("\\|");
There's also method trim() which removes trailing spaces from the strings.
trim()