reg

RegExCategories

NSRegularExpression extensions that make regular expressions easier in Objective-C, Swift, iOS, OSX

Showing:

Popularity

Downloads/wk

0

GitHub Stars

1.6K

Maintenance

Last Commit

5yrs ago

Contributors

8

Package

Dependencies

0

License

MIT

Categories

Readme

Categories on NSRegularExpression that make regular expressions more concise in Objective-C.

This project makes regular expressions easy in Objective-C. Here is an example where four lines of code become one:

// Without this library NSString string = @"I have 2 dogs."; NSRegularExpression regex = [NSRegularExpression regular ExpressionWithPattern:@"\d+" options:NSRegularExpressionCaseInsensitive error:&error]; NSTextCheckingResult *match = [regex firstMatchInString:string options:0 range:NSMakeRange(0, [string length])]; BOOL isMatch = match != nil;

// With this library BOOL isMatch = [@"I have 2 dogs." isMatch:RX(@"\d+")];

Installation

pod 'RegExCategories'

Authors

Josh Wright

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial