fork(2) 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 0.01s 9024KB
stdin
Standard input is empty
stdout
['$bb$', '$ddd$', '$ggg$', '$iii$']