Bağlantı Metninde HTTPS Kontrolü Yap - CSharp


Verilen bağlantı metninde https kontrolü yapmaya yarayan csharp kodudur.

Kod


public static bool HttpsKontrol(string metin)
{
    string desen = "(http)(s?)(://)";
    Match eslesme = Regex.Match(metin, desen, RegexOptions.IgnoreCase);

    return eslesme.Success;
}

Etiketler
csharp