View Problem

Check if a string matches with groups

Display "two" if "one two three" matches /one (.*) three/
DiskEdit
clojure
(if-let [groups (re-matches #"one (.*) three" "one two three")]
(println (second groups)))

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