📜  从html原始文本c#代码示例中删除标记锚和内部标记

📅  最后修改于: 2022-03-11 14:49:14.589000             🧑  作者: Mango

代码示例1
using System;
using System.Text.RegularExpressions;

public class Test
{
        public static void Main()
        {
                String sample = "LoremIpsum.Net is a small and simple static site that provides you with a decent sized passage without having to use a generator. The site also provides an all caps version of the text, as well as translations, and an explanation of what this famous.";

                String re = @"]+>(.*?)<\/a>";
                Console.WriteLine(Regex.Replace(sample, re, "$1"));
        }
}