View Problem

Check if a string matches with groups

Display "two" if "one two three" matches /one (.*) three/
DiskEdit
ruby
puts $1 if "one two three"=~/^one (.*) three$/

Submit a new solution for ruby
There are 18 other solutions in additional languages (clojure, cpp, csharp, erlang ...)