private List<string> GetStartAndEndString(string file)
{
List<string> strList = new List<string>();
byte[] bytes = File.ReadAllBytes(file);
if (bytes != null && bytes.Length > 0)
{ //搜索
string fileStr = System.Text.Encoding.Default.GetString(bytes);
MatchCollection Browser = System.Text.RegularExpressions.Regex.Matches(fileStr, "Browser: (?<str>[\\s\\S]*?)\r\n");
if (Browser.Count > 0)
{
foreach (Match m in Browser)
{
strList.Add(m.Groups["str"].Value);
}
}
}
return strList;
}
}