# File lib/bson/types/regex.rb, line 36
    def initialize(pattern, *opts)
      @pattern = pattern
      @options = opts.first.is_a?(Fixnum) ? opts.first : str_opts_to_int(opts.join)
    end