using System.Text.RegularExpressions;
public static void Main()
var teste1 = new Regex("^https").IsMatch("https://192.168.0.1") ? "https" : "http";
var teste2 = new Regex("^https").IsMatch("http://192.168.0.1") ? "https" : "http";
Console.WriteLine("Hello World");