I want strip html from string with regular expression and while this regex works everywhere it does not work in .net I don't understand why.
using System;
public class Program
{
public static void Main()
{
var text = "FOO <span style=\"mso-bidi-font-size:11.0pt;\nmso-fareast-language:EN-US\"> BAR";
var res = System.Text.RegularExpressions.Regex.Replace(text, "<.*?>", "");
Console.WriteLine(res);
}
}