I want to split a string each time there's a | in it, but the split method only accepts a regex. The regex | splits the string after each letter, which is not what I want.
Using \u007C does the same thing too.
I tried using \|, but that just gives me: Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ ).