s = 'These are my variables -abc $def -geh $ijk for case1'
m = re.search(r, s)
if m:
    print(re.findall('-(\\w+)', m.group(1)))
print(re.findall('\\$(\\w+)', m.group(1)))
print(m.group(2))
Regular expression with pattern repetition within pattern