[quote=引用 5 楼 lyj224170707 的回复:] [quote=引用 3 楼 anodaniu 的回复:] [quote=引用 1 楼 lyj224170707 的回复:] string result = Regex.Replace("内容", @"([\w]*?,[\w]+)", "\"$1\"");
string result = Regex.Replace("内容", @"([\w]*?,[\w]+)", "\"$1\"");
string result = Regex.Replace("内容", @"\S+,[ ]\S+", "'$0'");
[quote=引用 3 楼 anodaniu 的回复:] [quote=引用 1 楼 lyj224170707 的回复:] string result = Regex.Replace("内容", @"([\w]*?,[\w]+)", "\"$1\"");
[quote=引用 1 楼 lyj224170707 的回复:] string result = Regex.Replace("内容", @"([\w]*?,[\w]+)", "\"$1\"");
str=Regex.Replace(str,@"\w+,\w+","'$0'");
110,539
社区成员
642,577
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧