What is CocoaOniguruma?
CocoaOniguruma is an Objective-C binding of Oniguruma regular expression engine.
It's simple and tiny compared to the other bindings. It works well on Mac OS X and iPhone.
Download
How to use
CocoaOniguruma is provided as assorted source files primarily.
Follow the steps to use CocoaOniguruma in your project.
-
Copy
"core"
directory into your project directory with name"CocoaOniguruma"
. - Open your project by Xcode.
-
Add all
.h
,.c
and.m
files under"Classes"
. -
Import the header file, so you can use CocoaOniguruma.
#import "OnigRegexp.h"
How to use as a Framework
You can see "framework"
directory next to "core"
directory.
- Build the project under "framework" directory.
-
Copy
"build/Release/CocoaOniguruma.framework"
into your project directory. - Open your project by Xcode.
- Add the framework to your project under "Frameworks".
-
Open
"Targets"
in the project tree. -
Right click on the application target to open context menu and add a
"New Copy Files Build Phase"
. -
Drag
"CocoaOniguruma.framework"
into the new "Copy Files" phase. -
Import the header file, so you can use CocoaOniguruma.
#import "CocoaOniguruma/OnigRegexp.h"
License
CocoaOniguruma contains a part of Oniguruma 5.9.2 source code currently.
See also the Oniguruma's COPYING file.
The New BSD License
Copyright (c) 2008-2010 Satoshi Nakagawa <>
All rights reserved.