From: shevegen@... Date: 2018-04-08T04:26:22+00:00 Subject: [ruby-core:86476] [Ruby trunk Feature#14669] Regexp does not expose the amount of capture groups. Issue #14669 has been updated by shevegen (Robert A. Heiler). Should be added; may have just been forgotten if Onigmo already supports that. ---------------------------------------- Feature #14669: Regexp does not expose the amount of capture groups. https://bugs.ruby-lang.org/issues/14669#change-71415 * 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: