Menu

#6 Support for fetching array of matches.

RegexKitLite 2.2
closed
API (7)
5
2009-05-01
2009-04-23
No

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.

Discussion

  • Fredrik Olsson

    Fredrik Olsson - 2009-04-23

    RegecKitLite 2.2 extended

     
  • John Engelhart

    John Engelhart - 2009-05-01

    This feature (plus a few more) has been added to v3.0.

     
  • John Engelhart

    John Engelhart - 2009-05-01
    • status: open --> closed
     

Log in to post a comment.