fork download
  1. import re
  2. r = re.compile(r'([.,/#!$%^&*;:{}=_`~()-])[.,/#!$%^&*;:{}=_`~()-]+')
  3. n = r.sub(r'\1', "ews by almalki : Tornado, flood deaths reach 18 in U.s., more storms ahead ")
  4. print(n)
Success #stdin #stdout 0.02s 9024KB
stdin
Standard input is empty
stdout
ews by almalki : Tornado, flood deaths reach 18 in U.s. more storms ahead