class Regexp::Expression::Group::Absence

Special case. Absence group can match 0.. chars, irrespective of content. TODO: in theory, they can exclude match lengths with ‘.`: `(?~.{3})`

Public Instance Methods

match_length() click to toggle source
# File lib/regexp_parser/expression/methods/match_length.rb, line 172
def match_length
  MatchLength.new(self, base_min: 0, base_max: Float::INFINITY, reify: ->{ '.*' })
end