Here it is:
import re >>>s = \'abc -j k -l m\' >>>m = re.search(\'-\\w+ \\w+\', s) >>>m.groups() () >>> m.group(0) \'-j k\' <
Your regex has no match groups, indicated by parens ((...)).
(...)