fork download
  1. import re
  2.  
  3. y = r"This is (line 1 minus line 2)183,662,7203.004.00 Less test"
  4. print(re.findall(r"\(line 1 minus line 2\)(\d{1,3}(?:,\d{3})*)\d*(?:\.\d+)* Less\b" ,y))
Success #stdin #stdout 0.03s 9440KB
stdin
Standard input is empty
stdout
['183,662,720']