Using Oniguruma with Ruby 1.8.1

We’re planning to use Ruby in a commercial setting where licensing
will be an issue. The Ruby executable would be distributed on a CD
with some Ruby scripts that would perform registration and
installation functions for a commercial app being distributed on the
CD. Management has bought into this, but now the Lawyers have to
approve. I’m a little worried about Ruby’s current regex engine being
under GPL (Personally, I really don’t think it’s an issue, but who
knows what the Lawyers will say).

I’m wondering if Oniguruma can be used as a ‘drop-in’ replacement for
the current regex engine used in Ruby 1.8.1. I’m thinking about this
as a backup in case the Lawyers balk at the license for the current
regex engine.

Has anyone tried this?

Phil