fork(1) download
  1. import re
  2. text = "$100.00 50.00\n1.99 $150.50 200.00"
  3. print( [x for x in text.split() if not x.startswith('$')] )
  4. print( re.findall(r'(?<![$\d])\d+\.\d{2}(?!\d)', text) )
Success #stdin #stdout 0.02s 9528KB
stdin
Standard input is empty
stdout
['50.00', '1.99', '200.00']
['50.00', '1.99', '200.00']