Cannot access named capture in match data -----------------------------------------
Key: JRUBY-3726 URL: http://jira.codehaus.org/browse/JRUBY-3726 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.3RC2, JRuby 1.2 Environment: JRUBY_VERSION "1.2.0" JRUBY_VERSION "1.3.0RC2" Reporter: Shawn Ferry Named captures can be specified in the expression but not accessed in the resulting MatchData m = /&(?<foo>.*?);/.match("aaa & yyy") => #<MatchData "&" foo:"amp"> m[:foo] TypeError: Symbol as array index m["foo"] TypeError: can't convert String into Integer -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email