NSDictionary RegexKit Additions Reference
PCRE7.6
AvailabilityAvailable in Mac OS X v10.4 or later.
Overview
Specifying a Regular Expression
When specifying a regular expression, the regular expression can be either a RKRegex object or a NSString containing the text of a regular expression. When specified as a NSString, as determined by sending isKindOfClass:, the receiver will convert the string to a RKRegex object via regexWithRegexString:options:.
Determining if an Object Matches a Regular Expression
Objects are sent isMatchedByRegex: to determine whether or not they are matched by the specified regular expression.
Tasks
Instance Methods
Returns a Boolean value that indicates whether any of the receivers keys are matched by aRegex.
- (BOOL)containsKeyMatchingRegex:(id)aRegex;
Returns a NSDictionary with a count of 0 if there are no matches.
Returns a Boolean value that indicates whether any of the receivers objects are matched by aRegex.
- (BOOL)containsObjectMatchingRegex:(id)aRegex;
Returns a new dictionary that contains the entries in the receiver whose keys are matched by aRegex.
- (NSDictionary *)dictionaryByMatchingKeysWithRegex:(id)aRegex;
Returns a new dictionary that contains the entries in the receiver whose objects are matched by aRegex.
- (NSDictionary *)dictionaryByMatchingObjectsWithRegex:(id)aRegex;
Returns a NSDictionary with a count of 0 if there are no matches.
Returns an array containing the keys in the receiver whose object is matched by aRegex.
- (NSArray *)keysForObjectsMatchingRegex:(id)aRegex;
Returns a NSArray with a count of 0 if there are no matches.
Returns an array of the receiver's keys that are matched by aRegex.
- (NSArray *)keysMatchingRegex:(id)aRegex;
Returns a NSArray with a count of 0 if there are no matches.
Returns an array containing the objects in the receiver whose key is matched by aRegex.
- (NSArray *)objectsForKeysMatchingRegex:(id)aRegex;
Returns a NSArray with a count of 0 if there are no matches.
Returns an array containing the objects in the receiver that are matched by aRegex.
- (NSArray *)objectsMatchingRegex:(id)regexObject;
Returns a NSArray with a count of 0 if there are no matches.