How to use NSPredicate to find an NSString begins with numbers or special characters in ios? -
could please help, how use nspredicate find nsstring beginswith numbers or other special characters (but not begin alphabets)? want sort array name contains numbers , special characters. advance help.
you should able use matches
keyword:
[nspredicate predicatewithstring:@"self matches [^a-za-z]+.*"]
you can find more docu here:
and definition of how define regex here:
Comments
Post a Comment