Since below the original module is using:

```ruby
Regexp.new(datastore['REGEX'].to_s,Regexp::IGNORECASE)
```

And OptRegexp is doing:

```ruby
Regexp.compile(value)
```

I dont think both things are the same anymore. If you would like to switch to OptRegexp I guess something like that should be done, in order to make the Regexp Regexp::IGNORECASE (IMPORTANT: code not tested):

```ruby
OptRegexp.new('REGEX', [ true,  "The regex to use (default regex is a sample to grab page title)", /\<title\>(.*)\<\/title\>/i])
```