111,130
社区成员
发帖
与我相关
我的任务
分享string str = Environment.CommandLine;
string cmd = str.Trim().Trim('"');string str = Environment.CommandLine;
string cmd = str.Replace("\"", "");
string str = Environment.CommandLine;
string cmd = str.Trim('"'); string s = "\"abcdefg\"";
Regex re = new Regex(@"""([^""]*)""");
Match m = re.Match(s);
if (m.Success)
{
Console.WriteLine(m.Groups[1].Value);
}