Consider adding support of .first to MatchData object like MatchData
Lately I was using match data
test_string = "This is heading 6"
match = /<h\d+>(.+)<\/h\d+>/.match(test_string)
Then I tried to do this:
It did not work.
Is the way to go.
My question is:
Would it be consistent to consider adding
support of .first to MatchData as well?
class Array has it - I kind of assumed that
MatchData is a bit similar to Array.