From: pelsen@... Date: 2018-04-07T22:52:58+00:00 Subject: [ruby-core:86474] [Ruby trunk Feature#14669] Regexp does not expose the amount of capture groups. Issue #14669 has been reported by xfbs (Patrick Elsen). ---------------------------------------- Feature #14669: Regexp does not expose the amount of capture groups. https://bugs.ruby-lang.org/issues/14669 * Author: xfbs (Patrick Elsen) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- For a project we needed to know how many capture groups a Regex exposes (before actually matching it). The Onigmo regex library used by Ruby has this information, accessible with *onig_number_of_captures(const regex_t \*)*, but the Ruby Regexp class doesn't expose this information. -- https://bugs.ruby-lang.org/ Unsubscribe: