fork download
  1. import re
  2. text = "upi xxxxxxxxxx manoj jayant xxx xxxxxxx532kvblhii"
  3. print( " ".join([x for x in text.split() if x != len(x) * x[0] ]) )
  4. print( re.sub(r'\s*\bx+\b', '', text).lstrip() )
Success #stdin #stdout 0.02s 9576KB
stdin
Standard input is empty
stdout
upi manoj jayant xxxxxxx532kvblhii
upi manoj jayant xxxxxxx532kvblhii