From: "Earlopain (Earlopain _) via ruby-core" Date: 2026-08-16T14:09:55+00:00 Subject: [ruby-core:126421] [Ruby Misc#16659] Documentation on Regexp missing for absence pattern (?~pat) Issue #16659 has been updated by Earlopain (Earlopain _). Status changed from Open to Closed It is documented today under https://docs.ruby-lang.org/en/4.0/Regexp.html#class-Regexp-label-Absence+Operator ---------------------------------------- Misc #16659: Documentation on Regexp missing for absence pattern (?~pat) https://bugs.ruby-lang.org/issues/16659#change-118566 * Author: svoop (Sven Schwyn) * Status: Closed ---------------------------------------- The absence pattern `(?~pat)` available since Ruby 2.4.1 is [not yet documented on `Regexp`](https://git.ruby-lang.org/ruby.git/tree/doc/regexp.rdoc) as of today. (Found it by coincidence reading [this article by Peter Cooper](https://medium.com/rubyinside/the-new-absent-operator-in-ruby-s-regular-expressions-7c3ef6cd0b99). -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/