判断字符串 首字符是否为字母
NSString *regex = @”[A-Za-z]+”;
NSPredicate*predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",regex];
if ([predicate evaluateWithObject:aString]) {
}
判断字符串 首字符是否为字母
NSString *regex = @”[A-Za-z]+”;
NSPredicate*predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",regex];
if ([predicate evaluateWithObject:aString]) {
}