NSString *match = @"^[\u4e00-\u9fa5.·\\u36c3\u4DAE]{2,}$";
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF matches %@", match];
return [predicate evaluateWithObject:name];
NSString *match = @"^[\u4e00-\u9fa5.·\\u36c3\u4DAE]{2,}$";
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF matches %@", match];
return [predicate evaluateWithObject:name];
本文标题:正则姓名包括少数民族的验证
本文链接:https://www.haomeiwen.com/subject/imnswktx.html
网友评论