fork download
  1. import re
  2.  
  3. finalcontent=' £2,500 and also £ 1200 and also £ 7,645 and finally £8888 and london'
  4. print( re.findall(r\s*(\d+(?:\.\d+)?)',finalcontent.replace(',','')) )
  5.  
Success #stdin #stdout 0.02s 9636KB
stdin
Standard input is empty
stdout
['2500', '1200', '7645', '8888']