我试图证实代表地方名的扼杀。 我正对这样的一套简单特性加以匹配。
NSString *regexName = @"[a-zA-Z][., a-zA-Z\t\-]*"
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regexName];
I would like to know simple regular expression to use to match a broader international character set (principally western characters). I could just enumerate every character I can think of inside the regular expression, but I imagine there is another way. I m looking for ideas.