fork download
  1. import re
  2. text = "1,000.03AM2,97.2323,089.301,903.230.0034,928.9911,24.30AM"
  3. print( re.findall(r'\d+(?:,\d+)*(?:\.\d{2})?[^,\d]*', text) )
Success #stdin #stdout 0.02s 9700KB
stdin
Standard input is empty
stdout
['1,000.03AM', '2,97.23', '23,089.30', '1,903.23', '0.00', '34,928.99', '11,24.30AM']