using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main()
string replace = $"<{0}>";
string pattern = @"www.google.com(https?:\/\/[^\s]+)";
var text =@"http://www.google.com";
text = Regex.Replace(text, pattern, replace);