fork(1) download
  1. import re
  2. input_text = 'This is a test number +223/34 and this a real number 2333. The email is test@gmail.com and the website is www.test.com.'
  3. print( re.sub(r'[-+]?\b\d+(?:[.,+/*-]\d+)*\b', '', input_text) )
  4.  
Success #stdin #stdout 0.04s 9372KB
stdin
Standard input is empty
stdout
This is a test number  and this a real number . The email is test@gmail.com and the website is www.test.com.