📅  最后修改于: 2022-03-11 14:52:42.308000             🧑  作者: Mango
String string = "Hello-World";
String[] split = string.Replace("-", "#-").Split("#");
//# is added to the Splitpoint so we can split on #
Output:
split = [Hello, -World]