文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>如何取得双引号内的字符串(C#)

如何取得双引号内的字符串(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("\"", "");
相关阅读 更多 +
排行榜 更多 +
开心水族箱最新版

开心水族箱最新版

休闲益智 下载
烧脑杯子

烧脑杯子

休闲益智 下载
拥挤的球3d

拥挤的球3d

休闲益智 下载