fork(1) download
  1. import re
  2. text = 'Debt 1 of 2 for an amount of: $ 58.610,00, Unpaid'
  3. match = re.search(r'\$\s?(\d{1,3}(?:\.\d{3})+)(?:,\d+)?(?!\d)', text)
  4. if match:
  5. print(f"${match.group(1).replace('.', '')}")
Success #stdin #stdout 0.02s 9760KB
stdin
Standard input is empty
stdout
$58610