Java Split以竖线作为分隔符

如果要实现以“|”作为分割符,那么应该输入“\|”,而不是“|”。

所以应当是: str.split("\|");

原文地址:https://www.cnblogs.com/interdrp/p/6830802.html