I got a decline on my "Not an answer" flag on this answer of the OP just commenting that it works:
Nevermind. line.split(Pattern.quote("|")) works fine.
Which was included in his question:
I'm trying to write a beanshell sampler in JMeter that splits a | delimited file. Earlier, it was comma delimited, and using line.split(",") worked fine. Now, I have tried using line.split("|"), line.split("\|"), line.split("\|"), line.split(Pattern.quote("|")
Decline reason
declined - flags should not be used to indicate technical inaccuracies, or an altogether wrong answer
Also, there are two more comments that agree that this question isn't an answer.
Can the declination be removed/undo?
Notice I marked as Not an answer before the question was closed.