📜  在 c# 代码示例中按大写字符展开

📅  最后修改于: 2022-03-11 14:48:51.481000             🧑  作者: Mango

代码示例1
private string ToUppercase(string input) {
    var regex = new Regex(@"(?<=[A-Z])(?=[A-Z][a-z])|(?<=[^A-Z])(?=[A-Z])");
    return regex.Replace(input, " ");
}