My input is a string like the following-
some random text <http…any characters> more random text
or it could include https
some random text <https…any characters> more random text
I want my output to replace anything "including" the angle brackets with nothing. So my output should be the following-
some random text more random text
I'm using C# to do this so here's an example of my code:
static string RemoveLinks(string source)
{
const string pattern = "Need Regex Pattern Here";
return Regex.Replace(source, pattern, "");
}
Can someone please help with a pattern match?