in reply to difficult to split on "|"
Note that (in P6) you can split on the string "|", which in this case would do what you want.