C# string.Replace 不区分大小写
时间:2021-08-02 14:55:57
收藏:0
阅读:28
string input = "hello WoRlD";
string result =
Regex.Replace(input, "world", "csharp", RegexOptions.IgnoreCase);
Console.WriteLine(result); // prints "hello csharp"
原文:https://www.cnblogs.com/networkpilot/p/15088655.html
评论(0)