Oniguruma

Oniguruma

Oniguruma is a regular expression library for multiple programming languages. It started as a regular expression engine for Ruby but has been ported to many other languages over time. Oniguruma stands out for its speed, consistency across languages, and support for Unicode.
Oniguruma screenshot

Oniguruma: Regular Expression Library for Multiple Languages

A fast and consistent regular expression library supporting multiple programming languages, including Ruby, with strong Unicode support.

What is Oniguruma?

Oniguruma is an open source regular expression library started in 2002 by K.Kosako for use in Ruby. It has since been ported to many other programming languages thanks to its speed, consistency of behavior across languages, and Unicode support.

Some key features of Oniguruma include:

  • Very fast matching speeds that can outperform other popular regex engines like PCRE
  • Consistency in syntax and behavior when used in different programming languages
  • Wide support for Unicode character properties and character classes
  • Thread safety and reentrant execution
  • Partial match retrieval
  • Subexpression calls and recursion
  • Custom syntax via Ruby bindings

Originally written in C for high performance, Oniguruma is now available for use in Ruby, PHP, Python, Perl, Java, and more. It continues to be maintained and developed as an open source project. Key applications using Oniguruma for its regular expression needs include Ruby on Rails web frameworks, GitHub's linguist library, and text editors like VSCode and Sublime Text.

For its combination of high speed, Unicode support, consistency, and breadth of language availability, Oniguruma stands out as a versatile regular expressions library well suited for demanding applications needing complex text processing across multiple languages.

Oniguruma Features

Features

  1. Fast regular expression engine
  2. Support for many programming languages
  3. Consistent API across languages
  4. Full Unicode support

Pricing

  • Open Source

Pros

Very fast matching speed

Wide language support

Standardized API

Good Unicode support

Cons

Not as feature-rich as some regex engines

Documentation could be better

Some languages have limited support

Reviews & Ratings

Login to Review
No reviews yet

Be the first to share your experience with Oniguruma!

Login to Review

The Best Oniguruma Alternatives

Top Development and Programming Libraries and other similar apps like Oniguruma


Hyperscan icon

Hyperscan

Hyperscan is an open-source, high-performance regular expression matching library created by Intel. It allows software developers to build high-speed pattern matching applications by taking advantage of the parallelism and vector processing capabilities of modern processors.Hyperscan works by compiling regular expressions into executable code rather than interpreting them at runtime. This...
Hyperscan image
Nregex icon

Nregex

nregex is a regular expression library designed for .NET. It provides a powerful, easy-to-use API for working with regular expressions in .NET applications.Some key features of nregex include:Fluent interface for building regular expressions using a builder patternNamed capture groups for improved readability and maintenanceSubstitution/replace methods with support for lambdas and...
Nregex image
Perl Compatible Regular Expressions icon

Perl Compatible Regular Expressions

Perl Compatible Regular Expressions (PCRE) is a software library written in C that implements regular expression pattern matching with the same syntax and semantics as Perl 5. PCRE was originally developed by Philip Hazel and is now maintained by a team of developers on GitHub.Some key features of PCRE include:Support...
Perl Compatible Regular Expressions image