📅  最后修改于: 2022-03-11 14:49:14.589000             🧑  作者: Mango
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"));
}
}