Skip to content

Repository files navigation

Onigmo

Build Status codecov.io

An Objective-C wrapper around Onigmo.

Installation

Carthage is currently the only supported installation method:

github "nerdishbynature/Onigmo"

Usage

Search in String

We tried to mimic NSRegularExpression as close as possible, currently this library has only a initialiser and matchesInString:error: method implemented.

let onigmoRegex = try OnigmoRegularExpression(pattern: "a(.*)b|[e-f]+", options: .Default)
let matches = try onigmoRegex.matchesInString("zzzzaffffffffb")
let firstRange = matches["0"].rangeValue // a NSRange for the first match

License

See LICENSE file for more details

About

An Objective-C wrapper around Onigmo

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages