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: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>