public static bool IsUrl(this string url) => new Regex("^http(s)?://([\\w-]+.)+[\\w-]+(/[\\w- ./?%&=])?$") .IsMatch(url);