Support for fetching array of matches.
Status: Beta
Brought to you by:
jengelhart
I have added three new methods to the public API as this:
- (NSArray *)RKL_METHOD_PREPEND(componentsMatchedByRegex):(NSString *)regex;
- (NSArray *)RKL_METHOD_PREPEND(componentsMatchedByRegex):(NSString *)regex inRange:(NSRange)range;
- (NSArray *)RKL_METHOD_PREPEND(componentsMatchedByRegex):(NSString *)regex options:(RKLRegexOptions)options inRange:(NSRange)range capture:(NSUInteger)capture error:(NSError**)error;
The actual implementation is done in the static method rkl_collectArray, that is called by performRegexOp when using RKLCollectOp as regex operation argument.
I hope this fits well with the overall design.
RegecKitLite 2.2 extended
This feature (plus a few more) has been added to v3.0.