fork download
  1. import re
  2. rx = re.compile(r"^(\w+\s)[\d\s]+")
  3. s = "Mywebsite 21 12 34 have 10000 traffic"
  4. print( rx.sub(r"\1", s) )
Success #stdin #stdout 0.02s 9680KB
stdin
Standard input is empty
stdout
Mywebsite have 10000 traffic