class Regexp::Scanner

def in_group?

def in_group?
  group_depth > 0
end