The Java official documentation states:
The string \"boo:and:foo\", for example, yields the following results with these expressions Regex Result :
\"boo:and:foo\"
You can also use .split("[|]").
.split("[|]")
(I used this instead of .split("\\|"), which didn't work for me.)
.split("\\|")