Regex Categories objectivec类别采集

程序名称:Regex Categories

Regex Categories 介绍

Regex Categories 是一款为 NSRegularExpression 和 NSString 采集 objective-c
类别的工具,使他们可用性更高更简洁。

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

Regex Categories 官网

https://github.com/bendytree/Objective-C-RegEx-Categories

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...