79548368

Date: 2025-04-01 10:35:02
Score: 1
Natty:
Report link

you can save source as string and options as uint
looks like uint8 is enough for options:
https://docs.ruby-lang.org/en/master/Regexp.html#method-i-options

and here is method to create reg exp by source and options:
https://docs.ruby-lang.org/en/master/Regexp.html#method-c-new

r = Regexp.new('foo') # => /foo/
r.source              # => "foo"
r.options             # => 0

Regexp.new('foo', 'i')  # => /foo/i
Regexp.new('foo', 'im') # => /foo/im
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: A_____ A_______