fork download
  1. import re
  2.  
  3. regex = r"^\s*\w+(?: \d{2}){3}\s*"
  4. test_str = "Mywebsite 21 12 34 have 10000 traffic"
  5. result = re.sub(regex, "", test_str, 0, re.MULTILINE)
  6. print (result)
  7.  
  8.  
Success #stdin #stdout 0.02s 9676KB
stdin
Standard input is empty
stdout
have 10000 traffic