daviddavis/rubeque — Issue #41: Allow for regular expression capture references
Author: duncanbeevers
Created: 2012-02-01 06:48:11+00:00
State: open

A valid solution to a string parsing problem might use a construct like this:

````ruby
case str
when /(\d{1,2})-(\d{1,2})/ then [ $2, $1 ]
end
````

Currently, the app rejects the solution with the somewhat obtuse error: Your solution failed: undefined method `elements' for "$2":String