111,126
社区成员
发帖
与我相关
我的任务
分享
Regex reg = new Regex(@"\""[^\""]+\""");
MatchCollection m = reg.Matches(input);
string output = m[0].Value.Replace("\"","");
(?<=^[^'""]*?(['""]))[^'""]*(?=\1)
string tempStr = File.ReadAllText(@"C:\Documents and Settings\Administrator\桌面\Test.txt", Encoding.GetEncoding("GB2312"));//读取tx
string pattern = @"(?<=[^'""]*?(['""]))[^'""]*(?=\1)";
tempStr = Regex.Match(tempStr, pattern).Value;//Please type the text or Web site address