objective-c类别采集 Regex Categories

码农软件 · 软件分类 · 其他(Others) · 2019-07-26 08:56:35

软件介绍

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+")];

Icon

本文地址:https://www.codercto.com/soft/d/10960.html

Web Design in a Nutshell

Web Design in a Nutshell

Jennifer Niederst / O'Reilly Media, Inc. / 2006-02-21 / USD 34.99

Are you still designing web sites like it's 1999? If so, you're in for a surprise. Since the last edition of this book appeared five years ago, there has been a major climate change with regard to web......一起来看看 《Web Design in a Nutshell》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

MD5 加密
MD5 加密

MD5 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具