3.13. Ruby and Oniguruma
Ruby’s new regular expression engine is code-named Oniguruma, a Japanese name meaning roughly ghost wheel or demon wheel. (It is commonly misspelled by non-Japanese; remember you can’t spell Oniguruma without “guru.”)
The new engine offers several benefits over the old one. Notably, it handles internationalized strings better, and it adds some powerful features to Ruby’s regular expressions. Additionally, it is offered under a less restrictive license, comparable to the rest of Ruby. As this book is being written, Oniguruma is not yet fully integrated into the standard distribution.
The next section deals with detecting the presence of the Oniguruma engine. The section after that outlines how to build it if you don’t ...
Get The Ruby Way: Solutions and Techniques in Ruby Programming, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.