Regex replace betwee 2 characrers

CSharp · Console

/Program.cs

using System;
using System.Text.RegularExpressions;
					
public class Program
{
	public static void Main()
	{
		Regex yourRegex = new Regex(@"&.*;");
        string result = yourRegex.Replace("Hello &145126451; mate!", String.Empty);
		Console.WriteLine(result);
	}
}
;