View Problem

Check if a string matches with groups

Display "two" if "one two three" matches /one (.*) three/
DiskEdit
python
match = re.match(r'one (.*) three', 'one two three')
if match:
print match.group(1)

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