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 could also use the apache library and do this:
StringUtils.split(test, "|");