Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
guide · Ruby 4.1
Regexp Methods
Each of these Ruby core methods can accept a regexp as an argument:
From doc/language/regexp/methods.rdoc in Ruby 4.1.
View on GitHub ↗
docs.ruby-lang.org ↗