NSString* nameStr = @"abcd1234efg";
NSRegularExpression* regular = [NSRegularExpression regularExpressionWithPattern:@"[0-9]" options:0 error:NULL];
NSString* result = [regular stringByReplacingMatchesInString:nameStr options:0 range:NSMakeRange(0, [nameStr length]) withTemplate:@""];
NSLog(@"%@",result);
@"[0-9]" : 筛选字符串中的数字
@"[a-zA-Z.-]" : 筛选字符串中的字母