# File lib/bson/bson_ruby.rb, line 337 def deserialize_regex_data(buf) str = deserialize_cstr(buf) options_str = deserialize_cstr(buf) opts = 0 opts |= Regexp::IGNORECASE if options_str.include?('i') opts |= Regexp::MULTILINE if options_str.include?('m') opts |= Regexp::MULTILINE if options_str.include?('s') opts |= Regexp::EXTENDED if options_str.include?('x') Regexp.new(str, opts) end