110,545
社区成员
发帖
与我相关
我的任务
分享
String str = "你的字符串";
Regex.Matches(str, @"(?is)SITE\s*""([^""]+).*?id:(\d+).*?bindings:((?:.(?!state))*).*?\(physicalPath:([^\)]+)\)\s*(\S+)").OfType<Match>().ToList().ForEach(t => Console.WriteLine(string.Format(@"SITE ""{0}""
id:{1}
bindings:{2}
physicalPath:{3}
路径:{4}",t.Groups[1].Value,t.Groups[2].Value,t.Groups[3].Value,t.Groups[4].Value,t.Groups[5].Value)));