Regular Expression Named Group Matching does not work with String#
I just noticed this:
irb(main):001:0> s = "Robert Klemme"
=> "Robert Klemme"
irb(main):002:0> s[/(?\w+)\s+\w+/, :first]
TypeError: can't convert Symbol into Integer
IMHO it's just a small glitch but I believe for consistency reasons we should allow for a symbol as second argument with String# as well.