- (BOOL)isHaveIllegalChar:(NSString *)str{ NSCharacterSet *doNotWant = [NSCharacterSet characterSetWithCharactersInString:@"[]{}(#%-*+=_)\\|~(<>$%^&*)_+ "]; NSRange range = [str rangeOfCharacterFromSet:doNotWant]; return range.location<str.length; }
时间: 2024-10-03 03:09:53