清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
// 是否是网络连接url - (BOOL)isInternetLink:(NSString *)linkOrPath { NSString * regexStr =@"http(s)?://([\\w-]+\\.)+[\\w-]+(/[\\w- ./?%&=]*)?"; if (!linkOrPath) { return NO; } NSPredicate *strPredicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regexStr]; return [strPredicate evaluateWithObject:linkOrPath]; }