Ruby | Regexp named_captures() function
Regexp#named_captures() : named_captures() is a Regexp class method which returns a hash representing information about named captures of regular expression. A key of the hash is a name of the named capture produces a formatted string-version of the regular expression. Syntax: Regexp.named_captures(