简体   繁体   中英

Regular expression libraries for Mac OS X 10.6

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.

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怎么

There's also OgreKit , used by TextMate, and apparently SubEthaEdit and some other heavy-hitters

除了RegexKit和OgreKit,这里还有其他几个选项: http ://cocoaheads.byu.edu/resources/regex

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM