【发布时间】:2015-07-22 21:18:11
【问题描述】:
我刚刚发现有人使用这样的正则表达式:
NSString *pattern = @"i[\\p{Alphabetic}&&\\p{Uppercase}][\\p{Alphabetic}]+";
[NSRegularExpression regularExpressionWithPattern:pattern options:0 error:NULL];
// Source: http://www.objc.io/issue-5/getting-to-know-textkit.html
// Tested. It actually works.
正则表达式看起来很酷且可读(据说与 Unicode 更兼容)。我在哪里可以找到有关这种正则表达式的更多信息?它是一种纯可可的东西吗?
编辑:我找到了一个全面的答案here。
【问题讨论】:
标签: ios regex nsregularexpression