Mac OS X 10.6 的正则表达式库
是否有一个与 PCRE 兼容的库可以在 Mac OS X 10.6 上使用,并且与 Unicode 兼容?
我本来想使用谓词,但当应用程序尚未使用 Spotlight 谓词时,这有点过分了。
Is there a library compatible with PCRE that can be used on Mac OS X 10.6, and which is Unicode compatible?
I was thinking to use the predicates, but it is a little excessive when the application is not already using Spotlight predicates.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我推荐 RegexKitLite。虽然它不像完整的 RegexKit 那样功能齐全,但它的开发更加积极,并且可以在 iPhone 和桌面应用程序上使用。
这也是对您的应用程序的一个非常小的补充,对最终可执行文件的大小没有太大影响。
I'd recommend RegexKitLite. While it's not quiet as full featured as the full RegexKit it's more actively developed, and is usable on both the iphone and desktop apps.
It's also a very very small addition to your app not having much impact on the end executable size.
RegexKit 怎么样?
How about RegexKit?
还有 OgreKit,由 TextMate 使用,显然还有 SubEthaEdit 和一些其他重量级选手
There's also OgreKit, used by TextMate, and apparently SubEthaEdit and some other heavy-hitters
除了 RegexKit 和 OgreKit 之外,这里还有其他几个选项: http://cocoaheads.byu.edu /资源/正则表达式
In addition to RegexKit and OgreKit, there are a couple other options here: http://cocoaheads.byu.edu/resources/regex
作为已经报告的框架的替代方案,还有
OFRegularExpression
,它是 OmniFoundation。由于它是更大框架的一部分,因此它可能不是正确的选择,或者如果需要框架的其他部分,则应考虑它。As alternative to the frameworks already reported, there is also
OFRegularExpression
, which is part of OmniFoundation. As it is part of a bigger framework, it could not be the right choice, or it should be considered if other parts of the framework are required.