In C#, I have the following regex expression to remove HTML from a string:
var regex = new Regex("<[^>]*(>|$)");
return regex.Replace(input, match => "");
There are some cases where we need to allow for double >>
and <<
.
How do I change the above expression to simply skip these double angled brackets?