- (BOOL)achiveStringWithWeb:(NSString *)infor
{
NSString *emailRegex = @"[a-zA-z]+://.*";
NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];
return [emailTest evaluateWithObject:infor];
}
时间: 2024-11-03 22:52:27