반응형 Guid regex1 Regex 정규식 정규식 URL public static bool IsValidUrl(this string url) { return new Regex("^(https?://)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z](\\.[a-z]{2,6})?)(:[0-9]{1,5})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$").IsMatch(url); } GUID public static bool IsGuid(this string s) { if (s == null) throw new Ar.. 2016. 1. 8. 이전 1 다음 반응형