fork download
  1. import re
  2. line = """aaa$bb$ccc$ddd$eee
  3. fff$ggg$hh$iii$jj"""
  4. m = re.findall(r'\$([^$]+)\$', line)
  5. print(m)
  6.  
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
['bb', 'ddd', 'ggg', 'iii']