62,046
社区成员
发帖
与我相关
我的任务
分享
static void Main(string[] args)
{
string InputStr = "time=\"2014-11-28 14:05:44\"id=\"15487\"name=\"王吉\"";
Match match = Regex.Match(InputStr, "time=\"(?<time>[^\"]+?)\".*?id=\"(?<id>[^\"]+?)\".*?name=\"(?<name>[^\"]+?)\"");
string time = match.Groups["time"].Value;
string id = match.Groups["id"].Value;
string name = match.Groups["name"].Value;
}