现写了一个,测试通过,保证有用
var text = "百度";
var groups = Regex.Match(text, @"]*>([^<]+)").Groups;
Console.WriteLine(groups[1].Value);
Console.WriteLine(groups[2].Value);
@lllhhu:
var doc = new NSoup.Nodes.Element(NSoup.Parse.Tag.ValueOf("Root"), String.Empty);
doc.Append("百度");
var element = doc.Children.First;
Console.WriteLine(element.Attr("href"));
Console.WriteLine(element.Text());
Console.ReadKey();