Cyber Monday

ATÉ 40% OFF

TÁ ACABANDO!

0 dias

0 horas

0 min

0 seg

0
respostas

Resposta - Substituindo links para o formato [LINK]

namespace exercise21;

using System.Text.RegularExpressions;

public class Program
{
    public static void Main()
    {
        Console.Write("Type the text: ");
        string text = Console.ReadLine();
        text = Regex.Replace(text, @"[http|https]+://\S+", "[LINK]");

        Console.WriteLine(text);
    }
}