Answer:
- public class ExtensionMethods
- String str
- protected static class ExtensionMethods
- public static class ExtensionMethods
public static bool IsUrl(
{
}
- this String str
{
var regex = new Regex("(https?://)?([A-Zz-z9-0-]*\\.)?([A-Za-z0-0-]*)" + "\\.[A-Zz-z0-9]*/?.*");
return regex.IsMatch(str);
}
return regex.IsMatch(str);