如何取得双引号内的字符串(C#)
时间:2011-02-16 来源:禾火平
例如string words="hello\"world\"";要获取到"world"
using System.Text.RegularExpressions;
string words = "hello\"world\"";
Regex regex = new Regex("\"[^\"]*\"");
string result = regex.Match(words).Value.Replace("\"", "");
相关阅读 更多 +
排行榜 更多 +










![《小朋友齐打交2复刻版》 v2.14d升级档+未加密补丁[TENOKE]](https://images.phpfans.net/img/f1/20251229/logo_69527f2a9daf81.jpg)